diff options
author | Cameron Moore <moorereason@gmail.com> | 2017-05-01 22:04:21 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-05-02 10:18:41 +0300 |
commit | 5f095c27eabab75c1c948e4aa62ff4737a5607bd (patch) | |
tree | 4ed0a3c8eb67ab798d27d15d68df62d7364f9fe7 /tpl/data/resources_test.go | |
parent | f604076de17e5c06ba25a07ee8c8a55d1bb6b936 (diff) |
tpl/data: Shorten some internal func names
Diffstat (limited to 'tpl/data/resources_test.go')
-rw-r--r-- | tpl/data/resources_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tpl/data/resources_test.go b/tpl/data/resources_test.go index f0d7cfd17..9f5fb6ef4 100644 --- a/tpl/data/resources_test.go +++ b/tpl/data/resources_test.go @@ -54,7 +54,7 @@ func TestScpCache(t *testing.T) { for _, test := range tests { cfg := viper.New() - c, err := resGetCache(test.path, fs, cfg, test.ignore) + c, err := getCache(test.path, fs, cfg, test.ignore) if err != nil { t.Errorf("Error getting cache: %s", err) } @@ -62,12 +62,12 @@ func TestScpCache(t *testing.T) { t.Errorf("There is content where there should not be anything: %s", string(c)) } - err = resWriteCache(test.path, test.content, fs, cfg, test.ignore) + err = writeCache(test.path, test.content, fs, cfg, test.ignore) if err != nil { t.Errorf("Error writing cache: %s", err) } - c, err = resGetCache(test.path, fs, cfg, test.ignore) + c, err = getCache(test.path, fs, cfg, test.ignore) if err != nil { t.Errorf("Error getting cache after writing: %s", err) } @@ -107,7 +107,7 @@ func TestScpGetLocal(t *testing.T) { t.Error(err) } - c, err := resGetLocal(test.path, fs.Source, v) + c, err := getLocal(test.path, fs.Source, v) if err != nil { t.Errorf("Error getting resource content: %s", err) } @@ -154,14 +154,14 @@ func TestScpGetRemote(t *testing.T) { cfg := viper.New() - c, err := resGetRemote(test.path, fs, cfg, cl) + c, err := getRemote(test.path, fs, cfg, cl) if err != nil { t.Errorf("Error getting resource content: %s", err) } if !bytes.Equal(c, test.content) { t.Errorf("\nNet Expected: %s\nNet Actual: %s\n", string(test.content), string(c)) } - cc, cErr := resGetCache(test.path, fs, cfg, test.ignore) + cc, cErr := getCache(test.path, fs, cfg, test.ignore) if cErr != nil { t.Error(cErr) } @@ -199,7 +199,7 @@ func TestScpGetRemoteParallel(t *testing.T) { go func(gor int) { defer wg.Done() for j := 0; j < 10; j++ { - c, err := resGetRemote(url, fs, cfg, cl) + c, err := getRemote(url, fs, cfg, cl) if err != nil { t.Errorf("Error getting resource content: %s", err) } |