Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FreightServiceShipperTestSuiteConfig ¶ added in v0.17.0
type FreightServiceShipperTestSuiteConfig struct { // Create should return a resource which is valid to create, i.e. // all required fields set. Create func() *Shipper // IDGenerator should return a valid and unique ID to use in the Create call. // If non-nil, this function will be called to set the ID on all Create calls. // If the ID field is required, tests will fail if this is nil. IDGenerator func() string // Update should return a resource which is valid to update, i.e. // all required fields set. Update func() *Shipper // Patterns of tests to skip. // For example if a service has a Get method: // Skip: ["Get"] will skip all tests for Get. // Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get. Skip []string // contains filtered or unexported fields }
type FreightServiceSiteTestSuiteConfig ¶ added in v0.17.0
type FreightServiceSiteTestSuiteConfig struct { // The parents to use when creating resources. // At least one parent needs to be set. Depending on methods available on the resource, // more may be required. If insufficient number of parents are // provided the test will fail. Parents []string // Create should return a resource which is valid to create, i.e. // all required fields set. Create func(parent string) *Site // Update should return a resource which is valid to update, i.e. // all required fields set. Update func(parent string) *Site // Patterns of tests to skip. // For example if a service has a Get method: // Skip: ["Get"] will skip all tests for Get. // Skip: ["Get/persisted"] will only skip the subtest called "persisted" of Get. Skip []string // contains filtered or unexported fields }
type FreightServiceTestSuite ¶ added in v0.1.1
func (FreightServiceTestSuite) TestShipper ¶ added in v0.1.2
func (fx FreightServiceTestSuite) TestShipper(ctx context.Context, options FreightServiceShipperTestSuiteConfig)
func (FreightServiceTestSuite) TestSite ¶ added in v0.1.2
func (fx FreightServiceTestSuite) TestSite(ctx context.Context, options FreightServiceSiteTestSuiteConfig)
Click to show internal directories.
Click to hide internal directories.