refractor: rename some path util function.
This commit is contained in:
parent
ebdeef152c
commit
982c2c66aa
13 changed files with 87 additions and 82 deletions
|
|
@ -8,8 +8,6 @@ import (
|
|||
"reflect"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/roddhjav/apparmor.d/pkg/util"
|
||||
)
|
||||
|
||||
func Test_tokenizeRule(t *testing.T) {
|
||||
|
|
@ -919,7 +917,7 @@ var (
|
|||
},
|
||||
{
|
||||
name: "string.aa",
|
||||
raw: util.MustReadFile(testData.Join("string.aa")),
|
||||
raw: testData.Join("string.aa").MustReadFileAsString(),
|
||||
apparmor: &AppArmorProfileFile{
|
||||
Preamble: Rules{
|
||||
&Comment{Base: Base{Comment: " Simple test profile for the AppArmorProfileFile.String() method", IsLineRule: true}},
|
||||
|
|
@ -1017,7 +1015,7 @@ var (
|
|||
},
|
||||
{
|
||||
name: "full.aa",
|
||||
raw: util.MustReadFile(testData.Join("full.aa")),
|
||||
raw: testData.Join("full.aa").MustReadFileAsString(),
|
||||
apparmor: &AppArmorProfileFile{
|
||||
Preamble: Rules{
|
||||
&Comment{Base: Base{IsLineRule: true, Comment: " Simple test profile with all rules used"}},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue