summaryrefslogtreecommitdiff
path: root/settings_test.go
diff options
context:
space:
mode:
authorSuhaib Mujahid <[email protected]>2020-05-09 23:32:17 -0400
committerSuhaib Mujahid <[email protected]>2020-05-09 23:32:17 -0400
commitcf6522c7fe093244a14334ced1c90c9791231a3e (patch)
treeeba9030b1449cddf6274b748fbfcf010680d35cd /settings_test.go
parent8b51d0db8e40e97283b771a5a51b13bea4651f81 (diff)
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 <[email protected]>
Diffstat (limited to 'settings_test.go')
-rw-r--r--settings_test.go4
1 files changed, 2 insertions, 2 deletions
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 {