MCPcopy Create free account
hub / github.com/olivere/elastic / TestFetchSourceContextQueryDefaults

Function TestFetchSourceContextQueryDefaults

fetch_source_context_test.go:97–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

95}
96
97func TestFetchSourceContextQueryDefaults(t *testing.T) {
98 builder := NewFetchSourceContext(true)
99 values := builder.Query()
100 got := values.Encode()
101 expected := ""
102 if got != expected {
103 t.Errorf("expected %q; got: %q", expected, got)
104 }
105}
106
107func TestFetchSourceContextQueryNoFetchSource(t *testing.T) {
108 builder := NewFetchSourceContext(false)

Callers

nothing calls this directly

Calls 3

QueryMethod · 0.95
NewFetchSourceContextFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…