(t *testing.T)
| 31 | } |
| 32 | |
| 33 | func 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 | } |
nothing calls this directly
no test coverage detected