fmt: Set for setdir (#367)

This commit is contained in:
James Read 2024-07-18 13:08:36 +01:00 committed by GitHub
parent b50824a705
commit 49f745be68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -44,3 +44,10 @@ func TestFindAcl(t *testing.T) {
assert.NotNil(t, c.FindAcl("Testing ACL"), "Find a ACL that should exist") assert.NotNil(t, c.FindAcl("Testing ACL"), "Find a ACL that should exist")
assert.Nil(t, c.FindAcl("Chocolate Cake"), "Find a ACL that does not exist") assert.Nil(t, c.FindAcl("Chocolate Cake"), "Find a ACL that does not exist")
} }
func TestSetDir(t *testing.T) {
c := DefaultConfig()
c.SetDir("test")
assert.Equal(t, "test", c.GetDir(), "SetDir")
}