Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestConnector ¶
func TestConnector[Configuration any, State any](t *testing.T, ndc connector.Connector[Configuration, State], options TestConnectorOptions)
TestConnector the native test runner for the data connector. This is a port of ndc-test. ndc-test is awesome. However, it doesn't help increase the go coverage ratio. You can use the hasura-ndc-go generate snapshots command to generate test snapshots
Types ¶
type TestConnectorOptions ¶
type TestConnectorOptions struct { Configuration string InlineConfig bool TestDataDir string SkipResponseValidation bool // optional server options ServerOptions []connector.ServeOption }
TestConnectorOptions options for the test connector runner.
Click to show internal directories.
Click to hide internal directories.