MCPcopy
hub / github.com/perkeep/perkeep / TestQueryAnyCamliType

Function TestQueryAnyCamliType

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

Source from the content-addressed store, hash-verified

207}
208
209func TestQueryAnyCamliType(t *testing.T) {
210 testQuery(t, func(qt *queryTest) {
211 fileRef, _ := qt.id.UploadFile("file.txt", "foo", time.Unix(1382073153, 0))
212
213 sq := &SearchQuery{
214 Constraint: &Constraint{
215 AnyCamliType: true,
216 },
217 }
218 qt.wantRes(sq, fileRef)
219 })
220}
221
222func TestQueryBlobSize(t *testing.T) {
223 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