Versions in this module Expand all Collapse all v2 v2.2.0 Apr 1, 2019 Changes in this version + const Array + const Boolean + const KeyID + const KeyIndex + const NotExist + const Null + const Number + const Object + const String + var JSONParserInstance = &JSONParser + var SuccessMatcherInstance = &SuccessMatcher + func CreateNumberMatcher(input string) (types.GomegaMatcher, error) + func CreateStringMatcher(input string) (types.GomegaMatcher, error) + func IsBaseType(node Node) bool + func IsBaseTypes(nodes []Node) bool + func IsObjects(nodes []Node) bool + func MatchArrayWithArray(path string, exp, act []Node, parser Parser) (types.GomegaMatcher, bool, error) + func MatchArrayWithString(path string, exp Node, act []Node) (types.GomegaMatcher, bool, error) + func NewTimestampMatcher(expected time.Time, threshold time.Duration) types.GomegaMatcher + func ParseTime(str string) (time.Time, error) + func Replace(data []byte, vars map[string]string) ([]byte, error) + func Walk(path string, exp, act Node, parser Parser) (types.GomegaMatcher, bool, error) + type FailureMatcher struct + Message string + func NewFailureMatcher(path, expected, actual string) *FailureMatcher + func (matcher *FailureMatcher) FailureMessage(actual interface{}) (message string) + func (matcher *FailureMatcher) Match(actual interface{}) (success bool, err error) + func (matcher *FailureMatcher) NegatedFailureMessage(actual interface{}) (message string) + type JSONParser struct + func (p *JSONParser) Delete(data []byte, key string) []byte + func (p *JSONParser) GetArray(data []byte) []Node + func (p *JSONParser) GetFields(data []byte) map[string]Node + func (p *JSONParser) ValidateObject(data []byte) error + type Node struct + Type ValueType + Value []byte + func (n Node) String() string + type Nodes []Node + func (ns Nodes) String() string + type Parser interface + Delete func(data []byte, key string) []byte + GetArray func(data []byte) []Node + GetFields func(data []byte) map[string]Node + ValidateObject func(data []byte) error + type SuccessMatcher struct + func (matcher *SuccessMatcher) FailureMessage(actual interface{}) (message string) + func (matcher *SuccessMatcher) Match(actual interface{}) (success bool, err error) + func (matcher *SuccessMatcher) NegatedFailureMessage(actual interface{}) (message string) + type TimestampMatcher struct + func (matcher *TimestampMatcher) FailureMessage(actual interface{}) string + func (matcher *TimestampMatcher) Match(actual interface{}) (bool, error) + func (matcher *TimestampMatcher) NegatedFailureMessage(actual interface{}) string + type ValueType int + func (t ValueType) String() string Other modules containing this package github.com/mina-akimi/gosert