test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RecordAsserter

type RecordAsserter struct {
	// contains filtered or unexported fields
}

func NewRecordAsserter

func NewRecordAsserter(t *testing.T, resource string) *RecordAsserter

func (*RecordAsserter) Exists

func (ra *RecordAsserter) Exists(wantRecs ...sdk.Record) []string

func (*RecordAsserter) NotExists

func (ra *RecordAsserter) NotExists(ids ...string)

type RecordCreator

type RecordCreator struct {
	// contains filtered or unexported fields
}

func NewRecordCreator

func NewRecordCreator(t *testing.T, resource string, flushToServer bool) *RecordCreator

func (*RecordCreator) Cleanup

func (rc *RecordCreator) Cleanup()

Cleanup deletes all created records from hubspot.

func (*RecordCreator) NewTestCreateRecord

func (rc *RecordCreator) NewTestCreateRecord() sdk.Record

NewTestCreateRecord creates a test record with sdk.OperationCreate.

func (*RecordCreator) NewTestDeleteRecord

func (rc *RecordCreator) NewTestDeleteRecord(id string) sdk.Record

NewTestDeleteRecord creates a test record with sdk.OperationDelete.

func (*RecordCreator) NewTestUpdateRecord

func (rc *RecordCreator) NewTestUpdateRecord(id string) sdk.Record

NewTestUpdateRecord creates a test record with sdk.OperationUpdate.

Jump to

Keyboard shortcuts

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