File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -34,18 +34,24 @@ func TestTypes(t *testing.T) {
34
34
t .Run ("test operation types" , func (t * testing.T ) {
35
35
var a OperationType = - 1
36
36
assert .Equal (t , UndefinedType , a .String ())
37
+ a = 1
38
+ assert .Equal (t , UpsertType , a .String ())
37
39
a = 2
38
40
assert .Equal (t , DeleteType , a .String ())
39
41
})
40
42
t .Run ("test state concurrency type" , func (t * testing.T ) {
41
43
var b StateConcurrency = - 1
42
44
assert .Equal (t , UndefinedType , b .String ())
45
+ b = 1
46
+ assert .Equal (t , FirstWriteType , b .String ())
43
47
b = 2
44
48
assert .Equal (t , LastWriteType , b .String ())
45
49
})
46
50
t .Run ("test state consistency type" , func (t * testing.T ) {
47
51
var c StateConsistency = - 1
48
52
assert .Equal (t , UndefinedType , c .String ())
53
+ c = 1
54
+ assert .Equal (t , EventualType , c .String ())
49
55
c = 2
50
56
assert .Equal (t , StrongType , c .String ())
51
57
})
You can’t perform that action at this time.
0 commit comments