Documentation
¶
Index ¶
- func Dump(t testing.TB, v interface{})
- func MakeArray(t testing.TB, jsonArray string) document.Array
- func MakeArrayValue(t testing.TB, vs ...interface{}) document.Value
- func MakeDocument(t testing.TB, jsonDoc string) document.Document
- func MakeValue(t testing.TB, v interface{}) document.Value
- func MakeValueBuffer(t testing.TB, jsonArray string) *document.ValueBuffer
- func RequireDocJSONEq(t testing.TB, d document.Document, expected string)
- type Docs
- type KV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeArrayValue ¶ added in v0.12.0
func MakeDocument ¶
MakeDocument creates a document from a json string.
func MakeValueBuffer ¶ added in v0.12.0
func MakeValueBuffer(t testing.TB, jsonArray string) *document.ValueBuffer
Types ¶
type Docs ¶
func MakeDocuments ¶
MakeDocuments creates a slice of document from json strings.
type KV ¶ added in v0.11.0
type KV struct {
Key, Value []byte
}
KV is used to represent key-value pairs stored in tables or indexes.
func GetIndexContent ¶ added in v0.11.0
GetIndexContent iterates over the entire index and returns all the key-value pairs in order.
Click to show internal directories.
Click to hide internal directories.