MCPcopy
hub / github.com/perkeep/perkeep / TestQueryCamliType

Function TestQueryCamliType

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

Source from the content-addressed store, hash-verified

195}
196
197func TestQueryCamliType(t *testing.T) {
198 testQuery(t, func(qt *queryTest) {
199 fileRef, _ := qt.id.UploadFile("file.txt", "foo", time.Unix(1382073153, 0))
200 sq := &SearchQuery{
201 Constraint: &Constraint{
202 CamliType: "file",
203 },
204 }
205 qt.wantRes(sq, fileRef)
206 })
207}
208
209func TestQueryAnyCamliType(t *testing.T) {
210 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