mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
20 lines
266 B
Go
20 lines
266 B
Go
|
// +build linux
|
||
|
|
||
|
package seccomp
|
||
|
|
||
|
import (
|
||
|
"io/ioutil"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestLoadProfile(t *testing.T) {
|
||
|
f, err := ioutil.ReadFile("fixtures/example.json")
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
|
||
|
if _, err := LoadProfile(string(f)); err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
}
|