ndctest

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

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
}

TestConnectorOptions options for the test connector runner.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL