Merge branch 'pr-994'

Closes #994
This commit is contained in:
Aleksa Sarai 2016-08-23 01:47:41 +10:00
commit 31d51c10e1
No known key found for this signature in database
GPG Key ID: 9E18AA267DDB8DB4
1 changed files with 0 additions and 24 deletions

View File

@ -10,30 +10,6 @@ import (
"testing" "testing"
) )
// Checks whether the expected capability is specified in the capabilities.
func contains(expected string, values []string) bool {
for _, v := range values {
if v == expected {
return true
}
}
return false
}
func containsDevice(expected *Device, values []*Device) bool {
for _, d := range values {
if d.Path == expected.Path &&
d.Permissions == expected.Permissions &&
d.FileMode == expected.FileMode &&
d.Major == expected.Major &&
d.Minor == expected.Minor &&
d.Type == expected.Type {
return true
}
}
return false
}
func loadConfig(name string) (*Config, error) { func loadConfig(name string) (*Config, error) {
f, err := os.Open(filepath.Join("../sample_configs", name)) f, err := os.Open(filepath.Join("../sample_configs", name))
if err != nil { if err != nil {