aboutsummaryrefslogtreecommitdiff
path: root/file
diff options
context:
space:
mode:
Diffstat (limited to 'file')
-rw-r--r--file/names.go2
-rw-r--r--file/names_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/file/names.go b/file/names.go
index 1ef1246..8ed4a36 100644
--- a/file/names.go
+++ b/file/names.go
@@ -23,7 +23,7 @@ func splitNameExt(fname string) (string, string) {
return file[:len(file)-len(ext)], ext
}
-func CheckNames(pubFile, encFile string) error {
+func ValidateNames(pubFile, encFile string) error {
pubName, pubExt := splitNameExt(pubFile)
encName, encExt := splitNameExt(encFile)
if pubExt != extPub || encExt != extEnc || pubName != encName {
diff --git a/file/names_test.go b/file/names_test.go
index b6a28c0..7f6e089 100644
--- a/file/names_test.go
+++ b/file/names_test.go
@@ -15,7 +15,7 @@ func TestCheckNames(t *testing.T) {
}
for _, tc := range testCases {
t.Run(tc.pub+"+"+tc.sec, func(t *testing.T) {
- err := CheckNames(tc.pub, tc.sec)
+ err := ValidateNames(tc.pub, tc.sec)
if err != tc.err {
t.Errorf("got %v, want %v", err, tc.err)
}