Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djthorpe committed Jun 26, 2024
1 parent 32fd13f commit 3b9c6db
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 19 deletions.
34 changes: 34 additions & 0 deletions manager_ex_test.go
Original file line number Diff line number Diff line change
@@ -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)
}
}
}
19 changes: 0 additions & 19 deletions manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}

0 comments on commit 3b9c6db

Please sign in to comment.