GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - KablamoOSS/exportexample: Demonstration of using the export_test.go idiom

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
athena
athena
 
 
vendor
vendor
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 

Repository files navigation

export_test.go example

This go module demonstrates the power of export_test.go.

The athena package wraps the Athena SDK provided by the laborious AWS Go SDK.

On wrapping the AWS glue client

If I were to do this again - I would avoid wrapping the AWS glue client in a struct for a single method (or perhaps even multiple methods), instead opting to use a function that receives a glue client interface parameter.

I can still mock, but wouldn't need to bother with export_test.go idiom at all.

But the example still serves the purpose of demonstrating how it is used.

About

Demonstration of using the export_test.go idiom

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

5 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.