(t testing.TB, types []indexType, fn func(*queryTest))
| 103 | } |
| 104 | |
| 105 | func testQueryTypes(t testing.TB, types []indexType, fn func(*queryTest)) { |
| 106 | defer test.TLog(t)() |
| 107 | for _, it := range types { |
| 108 | if *queryType == "" || *queryType == it.String() { |
| 109 | t.Logf("Testing: --querytype=%s ...", it) |
| 110 | testQueryType(t, fn, it) |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | func testQueryType(t testing.TB, fn func(*queryTest), itype indexType) { |
| 116 | defer index.SetVerboseCorpusLogging(true) |
no test coverage detected