-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters