From cf6522c7fe093244a14334ced1c90c9791231a3e Mon Sep 17 00:00:00 2001 From: Suhaib Mujahid Date: Sat, 9 May 2020 23:32:17 -0400 Subject: refactor: Rename methods with Get prefix It is not Go idiomatic to put Get into the getter's name. https: //golang.org/doc/effective_go.html#Getters Co-Authored-By: lhchavez --- settings_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'settings_test.go') diff --git a/settings_test.go b/settings_test.go index 4e45567..150ee7c 100644 --- a/settings_test.go +++ b/settings_test.go @@ -57,8 +57,8 @@ func TestEnableCaching(t *testing.T) { checkFatal(t, err) } -func TestGetCachedMemory(t *testing.T) { - current, allowed, err := GetCachedMemory() +func TestCachedMemory(t *testing.T) { + current, allowed, err := CachedMemory() checkFatal(t, err) if current < 0 { -- cgit v1.2.3