MCPcopy
hub / github.com/elastic/go-elasticsearch / TestNew_InvalidCloudID

Function TestNew_InvalidCloudID

options_test.go:140–148  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

138}
139
140func TestNew_InvalidCloudID(t *testing.T) {
141 t.Parallel()
142 for _, id := range []string{"foo:ZZZ===", "foo:Zm9v", "foo:"} {
143 _, err := New(WithCloudID(id))
144 if err == nil {
145 t.Errorf("Expected error for CloudID %q", id)
146 }
147 }
148}
149
150func TestNew_InvalidURL(t *testing.T) {
151 t.Parallel()

Callers

nothing calls this directly

Calls 2

WithCloudIDFunction · 0.85
NewFunction · 0.50

Tested by

no test coverage detected