Skip to content

Instantly share code, notes, and snippets.

@yogeshlonkar
Created February 9, 2020 06:46
Show Gist options
  • Save yogeshlonkar/7fe39faac1ad5e4ad867f65e5c706ca9 to your computer and use it in GitHub Desktop.
Save yogeshlonkar/7fe39faac1ad5e4ad867f65e5c706ca9 to your computer and use it in GitHub Desktop.
AWS Golang monorepo lambdas example_test.go
package main
import (
"testing"
atl "github.com/yogeshlonkar/aws-lambda-go-test/local"
)
func TestMain(t *testing.T) {
response, err := atl.Run(atl.Input{})
if err != nil {
panic(err)
}
if string(response) != "\"some-string\"" {
t.Errorf("response=%s, want \"some-string\"", response)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment