-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepare_test.go
49 lines (32 loc) · 1.22 KB
/
prepare_test.go
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package fxgcppubsub_test
import (
"fmt"
"testing"
"github.com/ankorstore/yokai-contrib/fxgcppubsub"
"github.com/stretchr/testify/assert"
)
func TestPrepareSchema(t *testing.T) {
t.Parallel()
result := fxgcppubsub.PrepareSchema(fxgcppubsub.PrepareSchemaParams{})
assert.Equal(t, "fx.invokeOption", fmt.Sprintf("%T", result))
}
func TestPrepareTopic(t *testing.T) {
t.Parallel()
result := fxgcppubsub.PrepareTopic(fxgcppubsub.PrepareTopicParams{})
assert.Equal(t, "fx.invokeOption", fmt.Sprintf("%T", result))
}
func TestPrepareTopicWithSchema(t *testing.T) {
t.Parallel()
result := fxgcppubsub.PrepareTopicWithSchema(fxgcppubsub.PrepareTopicWithSchemaParams{})
assert.Equal(t, "fx.invokeOption", fmt.Sprintf("%T", result))
}
func TestPrepareTopicAndSubscription(t *testing.T) {
t.Parallel()
result := fxgcppubsub.PrepareTopicAndSubscription(fxgcppubsub.PrepareTopicAndSubscriptionParams{})
assert.Equal(t, "fx.invokeOption", fmt.Sprintf("%T", result))
}
func TestPrepareTopicAndSubscriptionWithSchema(t *testing.T) {
t.Parallel()
result := fxgcppubsub.PrepareTopicAndSubscriptionWithSchema(fxgcppubsub.PrepareTopicAndSubscriptionWithSchemaParams{})
assert.Equal(t, "fx.invokeOption", fmt.Sprintf("%T", result))
}