(t *testing.T)
| 105 | } |
| 106 | |
| 107 | func TestFetchSourceContextQueryNoFetchSource(t *testing.T) { |
| 108 | builder := NewFetchSourceContext(false) |
| 109 | values := builder.Query() |
| 110 | got := values.Encode() |
| 111 | expected := "_source=false" |
| 112 | if got != expected { |
| 113 | t.Errorf("expected %q; got: %q", expected, got) |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | func TestFetchSourceContextQueryFetchSourceWithIncludesAndExcludes(t *testing.T) { |
| 118 | builder := NewFetchSourceContext(true).Include("a", "b").Exclude("c") |
nothing calls this directly
no test coverage detected
searching dependent graphs…