diff options
author | Jakob Unterwurzacher | 2015-11-27 22:18:36 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-11-27 22:18:36 +0100 |
commit | 6acd772cf908908e3b0d817a78e64f98faaa8b7b (patch) | |
tree | d4ac426a5cf60a89b1b760bf392b3ba481c0d07c /cryptfs/config_test.go | |
parent | 798e5eb5e7c96384f40567bf7426621ca8373e15 (diff) |
diriv: Define "DirIV" feature flag
(unused so far)
Diffstat (limited to 'cryptfs/config_test.go')
-rw-r--r-- | cryptfs/config_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cryptfs/config_test.go b/cryptfs/config_test.go index cd8ed2f..e052428 100644 --- a/cryptfs/config_test.go +++ b/cryptfs/config_test.go @@ -69,3 +69,16 @@ func TestCreateConfFile(t *testing.T) { } } + +func TestIsFeatureFlagKnown(t *testing.T) { + var cf ConfFile + if !cf.isFeatureFlagKnown(FlagDirIV) { + t.Errorf("This flag should be known") + } + if !cf.isFeatureFlagKnown(FlagPlaintextNames) { + t.Errorf("This flag should be known") + } + if cf.isFeatureFlagKnown("StrangeFeatureFlag") { + t.Errorf("This flag should be NOT known") + } +} |