2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 11:28:54 +00:00

Convert underscore variable names to camelCase

This commit is contained in:
Michael Eischer 2020-07-28 22:28:19 +02:00
parent d0329cf3eb
commit b77e933d80

View File

@ -42,9 +42,9 @@ func TestFind(t *testing.T) {
if err != nil { if err != nil {
t.Error(err) t.Error(err)
} }
expected_match := "20bdc1402a6fc9b633aaffffffffffffffffffffffffffffffffffffffffffff" expectedMatch := "20bdc1402a6fc9b633aaffffffffffffffffffffffffffffffffffffffffffff"
if f != expected_match { if f != expectedMatch {
t.Errorf("Wrong match returned want %s, got %s", expected_match, f) t.Errorf("Wrong match returned want %s, got %s", expectedMatch, f)
} }
f, err = Find(m, SnapshotFile, "NotAPrefix") f, err = Find(m, SnapshotFile, "NotAPrefix")
@ -56,8 +56,8 @@ func TestFind(t *testing.T) {
} }
// Try to match with a prefix longer than any ID. // Try to match with a prefix longer than any ID.
extra_length_id := samples[0].String() + "f" extraLengthID := samples[0].String() + "f"
f, err = Find(m, SnapshotFile, extra_length_id) f, err = Find(m, SnapshotFile, extraLengthID)
if err != ErrNoIDPrefixFound { if err != ErrNoIDPrefixFound {
t.Error("Expected no snapshots to be matched.") t.Error("Expected no snapshots to be matched.")
} }