Documentation ¶
Index ¶
- Variables
- func AddTestCases(t *testing.T, d datastore.Datastore, testcases map[string]string)
- func ExpectKeyFilterMatches(t *testing.T, actual dsq.Results, expect []string)
- func ExpectKeyOrderMatches(t *testing.T, actual dsq.Results, expect []string)
- func ExpectMatches(t *testing.T, expect []string, actualR dsq.Results)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TestCases are key-values to use in datastore testing TestCases = map[string]string{ "/a": "a", "/a/b": "ab", "/a/b/c": "abc", "/a/b/d": "a/b/d", "/a/c": "ac", "/a/d": "ad", "/e": "e", "/f": "f", "/g": "", } )
Functions ¶
func AddTestCases ¶
AddTestCases stores the key-value pairs in a datastore for testing
func ExpectKeyFilterMatches ¶
ExpectKeyFilterMatches is used to verify filtering results
func ExpectKeyOrderMatches ¶
ExpectKeyOrderMatches is used to verify ordering results
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.