diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-13 16:13:40 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-13 16:13:40 +0200 |
commit | bc12fee58e8bd86672793ae37d9f924158afb482 (patch) | |
tree | b6506af647a5e6d3d8c053f2b284a3adc335d35b /bug/operations/operation_test.go | |
parent | e02294c8f372156945bbc43d70d4d36a07a3fbcf (diff) | |
download | git-bug-bc12fee58e8bd86672793ae37d9f924158afb482.tar.gz |
create the Bug structure
Diffstat (limited to 'bug/operations/operation_test.go')
-rw-r--r-- | bug/operations/operation_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bug/operations/operation_test.go b/bug/operations/operation_test.go index 1bd15f78..e53e524b 100644 --- a/bug/operations/operation_test.go +++ b/bug/operations/operation_test.go @@ -11,8 +11,8 @@ type CreateOperation2 struct { Message string } -func (op CreateOperation2) OpType() OperationType { - return UNKNOW +func (op CreateOperation2) OpType() bug.OperationType { + return bug.UNKNOW } func (op CreateOperation2) Apply(snapshot bug.Snapshot) bug.Snapshot { @@ -26,16 +26,16 @@ func TestOperationsEquality(t *testing.T) { Email: "rene@descartes.fr", } - var A Operation = NewCreateOp(rene, "title", "message") - var B Operation = NewCreateOp(rene, "title", "message") - var C Operation = NewCreateOp(rene, "title", "different message") + var A bug.Operation = NewCreateOp(rene, "title", "message") + var B bug.Operation = NewCreateOp(rene, "title", "message") + var C bug.Operation = NewCreateOp(rene, "title", "different message") if A != B { - t.Fatal("Equal value operations should be tested equals") + t.Fatal("Equal value ops should be tested equals") } if A == C { - t.Fatal("Different value operations should be tested different") + t.Fatal("Different value ops should be tested different") } D := CreateOperation2{Title: "title", Message: "message"} @@ -49,7 +49,7 @@ func TestOperationsEquality(t *testing.T) { Email: "isaac@newton.uk", } - var E Operation = NewCreateOp(isaac, "title", "message") + var E bug.Operation = NewCreateOp(isaac, "title", "message") if A == E { t.Fatal("Operation equality should handle the author") |