MCPcopy Create free account
hub / github.com/coderabbit214/document-ai / TestGetCollection

Function TestGetCollection

pkg/qdrant/collection_test.go:33–55  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

31}
32
33func TestGetCollection(t *testing.T) {
34 type args struct {
35 name string
36 }
37 tests := []struct {
38 name string
39 args args
40 wantErr bool
41 }{
42 {
43 name: "1",
44 args: args{name: "xxx"},
45 wantErr: false,
46 },
47 }
48 for _, tt := range tests {
49 t.Run(tt.name, func(t *testing.T) {
50 if err := GetCollection(tt.args.name); (err != nil) != tt.wantErr {
51 t.Errorf("GetCollection() error = %v, wantErr %v", err, tt.wantErr)
52 }
53 })
54 }
55}

Callers

nothing calls this directly

Calls 1

GetCollectionFunction · 0.85

Tested by

no test coverage detected