aboutsummaryrefslogtreecommitdiff
path: root/main_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/main_test.go b/main_test.go
deleted file mode 100644
index 1e8d0e5..0000000
--- a/main_test.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package main
-
-import "testing"
-
-func TestNamingScheme(t *testing.T) {
- testCases := []struct {
- pub, sec string
- ok bool
- }{
- {"key.pub", "key.sec", true},
- {"testdata/key.pub", "key.sec", true},
- {"key.pub", "testdata/key.sec", true},
- {"foo.pub", "bar.sec", false},
- {"key.foo", "key.bar", false},
- }
- for _, tc := range testCases {
- t.Run(tc.pub+"+"+tc.sec, func(t *testing.T) {
- ok := NamingScheme(tc.pub, tc.sec)
- if ok != tc.ok {
- t.Errorf("got %v, want %v", ok, tc.ok)
- }
- })
- }
-}