-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathelasticClient_test.go
More file actions
31 lines (26 loc) · 986 Bytes
/
elasticClient_test.go
File metadata and controls
31 lines (26 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package disabled
import (
"bytes"
"context"
"testing"
"github.com/multiversx/mx-chain-core-go/core/check"
"github.com/stretchr/testify/require"
)
func TestDisabledElasticClient_MethodsShouldNotPanic(t *testing.T) {
t.Parallel()
ec := NewDisabledElasticClient()
require.False(t, check.IfNil(ec))
require.NotPanics(t, func() {
_ = ec.DoBulkRequest(context.Background(), new(bytes.Buffer), "")
_ = ec.DoQueryRemove(context.Background(), "", new(bytes.Buffer))
_ = ec.DoMultiGet(context.Background(), make([]string, 0), "", true, nil)
_ = ec.DoScrollRequest(context.Background(), "", []byte(""), true, nil)
_, _ = ec.DoCountRequest(context.Background(), "", []byte(""))
_ = ec.UpdateByQuery(context.Background(), "", new(bytes.Buffer))
_ = ec.PutMappings("", new(bytes.Buffer))
_ = ec.CheckAndCreateIndex("")
_ = ec.CheckAndCreateAlias("", "")
_ = ec.CheckAndCreateTemplate("", new(bytes.Buffer))
_ = ec.CheckAndCreatePolicy("", new(bytes.Buffer))
})
}