Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
timl3136 committed Oct 9, 2024
1 parent 741d421 commit bdba999
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions common/types/replicator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,20 @@
package types

import (
"github.com/stretchr/testify/assert"
"testing"

"github.com/stretchr/testify/assert"
)

func TestDLQType_Ptr(t *testing.T) {
var dlqType DLQType = DLQTypeReplication
dlqType := DLQTypeReplication
ptr := dlqType.Ptr()

assert.Equal(t, &dlqType, ptr)
}

func TestDLQType_String(t *testing.T) {
var dlqType DLQType = DLQTypeReplication
dlqType := DLQTypeReplication
assert.Equal(t, "Replication", dlqType.String())

dlqType = DLQTypeDomain
Expand Down Expand Up @@ -64,7 +65,7 @@ func TestDLQType_UnmarshalText(t *testing.T) {
}

func TestDLQType_MarshalText(t *testing.T) {
var dlqType DLQType = DLQTypeReplication
dlqType := DLQTypeReplication
text, err := dlqType.MarshalText()
assert.NoError(t, err)
assert.Equal(t, []byte("Replication"), text)
Expand All @@ -76,14 +77,14 @@ func TestDLQType_MarshalText(t *testing.T) {
}

func TestDomainOperation_Ptr(t *testing.T) {
var domainOp DomainOperation = DomainOperationCreate
domainOp := DomainOperationCreate
ptr := domainOp.Ptr()

assert.Equal(t, &domainOp, ptr)
}

func TestDomainOperation_String(t *testing.T) {
var domainOp DomainOperation = DomainOperationCreate
domainOp := DomainOperationCreate
assert.Equal(t, "Create", domainOp.String())

domainOp = DomainOperationUpdate
Expand Down Expand Up @@ -112,7 +113,7 @@ func TestDomainOperation_UnmarshalText(t *testing.T) {
}

func TestDomainOperation_MarshalText(t *testing.T) {
var domainOp DomainOperation = DomainOperationCreate
domainOp := DomainOperationCreate
text, err := domainOp.MarshalText()
assert.NoError(t, err)
assert.Equal(t, []byte("Create"), text)
Expand Down

0 comments on commit bdba999

Please sign in to comment.