Skip to content

Instantly share code, notes, and snippets.

@gerad
Created May 4, 2015 21:03
Show Gist options
  • Save gerad/ee1dda74c7de40798838 to your computer and use it in GitHub Desktop.
Save gerad/ee1dda74c7de40798838 to your computer and use it in GitHub Desktop.
package echo
import (
"testing"
"contracts" // our home-built contract testing library
)
// test the echo provider
func TestEchoProvider(t *testing.T) {
stubConnection := contracts.NewStubConnection()
StartEchoProvider(stubConnection)
stubConnection.TestContract(t, "echo-contract.json", contracts.asProvider)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment