We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b642fe0 commit e476329Copy full SHA for e476329
options_test.go
@@ -43,6 +43,14 @@ func TestWithMeta(t *testing.T) {
43
require.Equal(t, "value", opts.Tags["test"])
44
}
45
46
+func TestWithVersion(t *testing.T) {
47
+ opt := WithVersion(2, "xxx")
48
+ opts := &PublishOptions{}
49
+ opt(opts)
50
+ require.Equal(t, 2, opts.Version)
51
+ require.Equal(t, "xxx", opts.VersionEpoch)
52
+}
53
+
54
func TestSubscribeOptions(t *testing.T) {
55
subscribeOpts := []SubscribeOption{
56
WithExpireAt(1),
0 commit comments