From 3b9c6dbb19f889fa08e8eb607919b5a0974897c7 Mon Sep 17 00:00:00 2001 From: David Thorpe Date: Wed, 26 Jun 2024 09:56:07 +0200 Subject: [PATCH] Updated tests --- manager_ex_test.go | 34 ++++++++++++++++++++++++++++++++++ manager_test.go | 19 ------------------- 2 files changed, 34 insertions(+), 19 deletions(-) create mode 100644 manager_ex_test.go diff --git a/manager_ex_test.go b/manager_ex_test.go new file mode 100644 index 0000000..6c27dcd --- /dev/null +++ b/manager_ex_test.go @@ -0,0 +1,34 @@ +//go:build !container + +package media_test + +import ( + "testing" + + // Package imports + "github.com/stretchr/testify/assert" + + // Namespace imports + . "github.com/mutablelogic/go-media" +) + +// These tests do not run in containers + +func Test_manager_008(t *testing.T) { + assert := assert.New(t) + + manager, err := NewManager() + if !assert.NoError(err) { + t.SkipNow() + } + + formats := manager.InputFormats(ANY) + assert.NotNil(formats) + for _, format := range formats { + if format.Type().Is(DEVICE) { + devices := manager.Devices(format) + assert.NotNil(devices) + t.Log(format, devices) + } + } +} diff --git a/manager_test.go b/manager_test.go index 8049d4c..37f1994 100644 --- a/manager_test.go +++ b/manager_test.go @@ -108,22 +108,3 @@ func Test_manager_007(t *testing.T) { tablewriter.New(os.Stderr, tablewriter.OptHeader(), tablewriter.OptOutputText()).Write(codecs) } - -func Test_manager_008(t *testing.T) { - assert := assert.New(t) - - manager, err := NewManager() - if !assert.NoError(err) { - t.SkipNow() - } - - formats := manager.InputFormats(ANY) - assert.NotNil(formats) - for _, format := range formats { - if format.Type().Is(DEVICE) { - devices := manager.Devices(format) - assert.NotNil(devices) - t.Log(format, devices) - } - } -}