diff --git a/types/auto-start-flag_test.go b/types/auto-start-flag_test.go index 1cea64a..62c00de 100644 --- a/types/auto-start-flag_test.go +++ b/types/auto-start-flag_test.go @@ -1,11 +1,17 @@ package types import ( + "encoding" "github.com/brianvoe/gofakeit/v7" "github.com/stretchr/testify/assert" "testing" ) +func TestAutoStartFlag_TextInterfaces(t *testing.T) { + assert.Implements(t, (*encoding.TextMarshaler)(nil), new(AutoStartFlag)) + assert.Implements(t, (*encoding.TextUnmarshaler)(nil), new(AutoStartFlag)) +} + func TestAutoStartFlag_String(t *testing.T) { type TestCase struct { a AutoStartFlag diff --git a/types/full-scale-range_test.go b/types/full-scale-range_test.go index 3f1b255..2567a70 100644 --- a/types/full-scale-range_test.go +++ b/types/full-scale-range_test.go @@ -1,11 +1,17 @@ package types import ( + "encoding" "github.com/brianvoe/gofakeit/v7" "github.com/stretchr/testify/assert" "testing" ) +func TestFullScaleRange_TextInterfaces(t *testing.T) { + assert.Implements(t, (*encoding.TextMarshaler)(nil), new(FullScaleRange)) + assert.Implements(t, (*encoding.TextUnmarshaler)(nil), new(FullScaleRange)) +} + func TestFullScaleRange_String(t *testing.T) { type TestCase struct { name string diff --git a/types/lidar-mode_test.go b/types/lidar-mode_test.go index 2b93c30..593620e 100644 --- a/types/lidar-mode_test.go +++ b/types/lidar-mode_test.go @@ -1,11 +1,17 @@ package types import ( + "encoding" "github.com/brianvoe/gofakeit/v7" "github.com/stretchr/testify/assert" "testing" ) +func TestLIDARMode_TextInterfaces(t *testing.T) { + assert.Implements(t, (*encoding.TextMarshaler)(nil), new(LIDARMode)) + assert.Implements(t, (*encoding.TextUnmarshaler)(nil), new(LIDARMode)) +} + func TestLIDARMode_String(t *testing.T) { type TestCase struct { name string diff --git a/types/multipurpose-io-mode_test.go b/types/multipurpose-io-mode_test.go index c98a8fa..49f77b2 100644 --- a/types/multipurpose-io-mode_test.go +++ b/types/multipurpose-io-mode_test.go @@ -1,12 +1,18 @@ package types import ( + "encoding" "github.com/brianvoe/gofakeit/v7" "github.com/stretchr/testify/assert" "math" "testing" ) +func TestMultipurposeIOMode_TextInterfaces(t *testing.T) { + assert.Implements(t, (*encoding.TextMarshaler)(nil), new(MultipurposeIOMode)) + assert.Implements(t, (*encoding.TextUnmarshaler)(nil), new(MultipurposeIOMode)) +} + func TestMultipurposeIOMode_String(t *testing.T) { type TestCase struct { name string