(t *testing.T)
| 74 | } |
| 75 | |
| 76 | func TestSearchEngine_QueryDoc(t *testing.T) { |
| 77 | operator, err := NewOperator(testEndpoints, testUsername, testPassword) |
| 78 | if err != nil { |
| 79 | t.Fatal(err) |
| 80 | } |
| 81 | doc, err := operator.QueryDoc(context.Background(), testIndex, elastic.NewMatchAllQuery(), nil, nil, 0, 5) |
| 82 | if err != nil { |
| 83 | t.Fatal(err) |
| 84 | } |
| 85 | for i, hit := range doc.Hits.Hits { |
| 86 | data, _ := hit.Source.MarshalJSON() |
| 87 | t.Logf("%d: %+v", i, string(data)) |
| 88 | } |
| 89 | } |
nothing calls this directly
no test coverage detected