MCPcopy
hub / github.com/perkeep/perkeep / TestQuery

Function TestQuery

pkg/search/query_test.go:182–195  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

180}
181
182func TestQuery(t *testing.T) {
183 testQuery(t, func(qt *queryTest) {
184 fileRef, wholeRef := qt.id.UploadFile("file.txt", "the content", time.Unix(1382073153, 0))
185
186 sq := &SearchQuery{
187 Constraint: &Constraint{
188 Anything: true,
189 },
190 Limit: 0,
191 Sort: UnspecifiedSort,
192 }
193 qt.wantRes(sq, fileRef, wholeRef)
194 })
195}
196
197func TestQueryCamliType(t *testing.T) {
198 testQuery(t, func(qt *queryTest) {

Callers

nothing calls this directly

Calls 3

testQueryFunction · 0.85
wantResMethod · 0.80
UploadFileMethod · 0.45

Tested by

no test coverage detected