Documentation
¶
Index ¶
- func CompareAndSetByPathNum[T types.CompositeType](tb testing.TB, expected, actual T, delta float64, path ...string)
- func CompareAndSetByPathTime[T types.CompositeType](tb testing.TB, expected, actual T, delta time.Duration, path ...string)
- func Ctx(tb testing.TB) context.Context
- func GetByPath[T types.CompositeType](tb testing.TB, comp T, path ...string) any
- func MustParseDumpFile(path ...string) []byte
- func ParseDump(tb testing.TB, s string) []byte
- func ParseDumpFile(tb testing.TB, path ...string) []byte
- func SetByPath[T types.CompositeType](tb testing.TB, comp T, value any, path ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareAndSetByPathNum ¶
func CompareAndSetByPathNum[T types.CompositeType](tb testing.TB, expected, actual T, delta float64, path ...string)
CompareAndSetByPathNum asserts that two values with the same path in two objects (documents or arrays) are within a given numerical delta, then updates the expected object with the actual value.
func CompareAndSetByPathTime ¶
func CompareAndSetByPathTime[T types.CompositeType](tb testing.TB, expected, actual T, delta time.Duration, path ...string)
CompareAndSetByPathTime asserts that two values with the same path in two objects (documents or arrays) are within a given time delta, then updates the expected object with the actual value.
func MustParseDumpFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.