Created
February 9, 2020 06:46
-
-
Save yogeshlonkar/7fe39faac1ad5e4ad867f65e5c706ca9 to your computer and use it in GitHub Desktop.
AWS Golang monorepo lambdas example_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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