github.com/ncdc/docker@v0.10.1-0.20160129113957-6c6729ef5b74/profiles/seccomp/seccomp_test.go (about)

     1  // +build linux
     2  
     3  package seccomp
     4  
     5  import (
     6  	"io/ioutil"
     7  	"testing"
     8  )
     9  
    10  func TestLoadProfile(t *testing.T) {
    11  	f, err := ioutil.ReadFile("fixtures/example.json")
    12  	if err != nil {
    13  		t.Fatal(err)
    14  	}
    15  
    16  	if _, err := LoadProfile(string(f)); err != nil {
    17  		t.Fatal(err)
    18  	}
    19  }