package
0.1.0
Repository: https://github.com/nao1215/spectest.git
Documentation: pkg.go.dev

# Packages

Package http is utility functions for http requests and responses.
Package jsonpath is not referenced by user code.
Package mocks provides convenience functions for asserting jsonpath expressions.

# Functions

Chain creates a new assertion chain.
Contains is a convenience function to assert that a jsonpath expression extracts a value in an array.
Equal is a convenience function to assert that a jsonpath expression extracts a value.
GreaterThan asserts that value is greater than the given length, determined by reflect.Len.
JWTHeaderEqual asserts that the JWT header matches the expected value.
JWTPayloadEqual asserts that the JWT payload matches the expected value.
Len asserts that value is the expected length, determined by reflect.Len.
LessThan asserts that value is less than the given length, determined by reflect.Len.
Matches asserts that the value matches the given regular expression.
NotEqual is a function to check json path expression value is not equal to given value.
NotPresent asserts that value returned by the expression is not present.
Present asserts that value returned by the expression is present.
Root creates a new assertion chain prefixed with the given expression.

# Structs

AssertionChain supports chaining assertions and root expressions.