(t *testing.T)
| 1115 | } |
| 1116 | |
| 1117 | func TestQueryFileCandidateSource(t *testing.T) { |
| 1118 | testQueryTypes(t, memIndexTypes, func(qt *queryTest) { |
| 1119 | id := qt.id |
| 1120 | fileRef, _ := id.UploadFile("some-stuff.txt", "hello", time.Unix(123, 0)) |
| 1121 | qt.t.Logf("fileRef = %q", fileRef) |
| 1122 | p1 := id.NewPlannedPermanode("1") |
| 1123 | id.SetAttribute(p1, "camliContent", fileRef.String()) |
| 1124 | |
| 1125 | sq := &SearchQuery{ |
| 1126 | Constraint: &Constraint{ |
| 1127 | File: &FileConstraint{ |
| 1128 | WholeRef: blob.RefFromString("hello"), |
| 1129 | }, |
| 1130 | }, |
| 1131 | } |
| 1132 | qt.candidateSource = "corpus_file_meta" |
| 1133 | qt.wantRes(sq, fileRef) |
| 1134 | }) |
| 1135 | } |
| 1136 | |
| 1137 | func TestQueryRecentPermanodes_UnspecifiedSort(t *testing.T) { |
| 1138 | testQueryRecentPermanodes(t, UnspecifiedSort, "corpus_permanode_created") |
nothing calls this directly
no test coverage detected