{"modulePath":"github.com/stackrox/helmtest","version":"v0.0.9","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package parser\n\n## Types\n\n```go\ntype ParsedQuery struct {\n\t*gojq.Query\n\tSource    string\n\tSourceCtx SourceContext\n}\n```\nParsedQuery is a parsed query, with some extra metadata to aid diagnosing test failures.\n\n```go\nfunc ParseExpectations(spec string, sctx SourceContext) ([]*ParsedQuery, error)\n```\nParseExpectations parses an \"expect\" section. The expect section consists of several jq filters, one per line. In order to allow longer filter expressions, a filter expression may be continued on the next line. This is indicated by having the continuation line start with any whitespace character.\n\n```go\nfunc ParseQuery(src string, sctx SourceContext) (*ParsedQuery, error)\n```\nParseQuery parses a single query.\n\n```go\nfunc (q *ParsedQuery) Copy() *ParsedQuery\n```\nCopy returns deep copy of ParsedQuery\n\n```go\ntype SourceContext struct {\n\tFilename string\n\tLine     int\n}\n```\nSourceContext stores information about location in a source file.\n\n```go\nfunc (c *SourceContext) IsZero() bool\n```\nIsZero checks whether this SourceContext is equal to the zero SourceContext.\n\n```go\nfunc (c SourceContext) String() string\n```\nString returns a human-readable string representation of this source context.\n\n","path":"github.com/stackrox/helmtest/internal/parser","name":"parser","synopsis":"","isRedistributable":true}
