Skip to content

Commit 1284b00

Browse files
fix: changing the Load() function to be a private function
1 parent c1cea49 commit 1284b00

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/cpuInfo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ cpu cores : 6
177177

178178
type spyCpuLoader struct{}
179179

180-
func (l *spyCpuLoader) Load(string) (string, error) {
180+
func (l *spyCpuLoader) load(string) (string, error) {
181181
return cpuinfo, nil
182182
}
183183
func TestGetCpuInfo(t *testing.T) {

pkg/memInfo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Inactive: 6296272 kB
1818

1919
type spyMemLoader struct{}
2020

21-
func (l *spyMemLoader) Load(string) (string, error) {
21+
func (l *spyMemLoader) load(string) (string, error) {
2222
return memInfo, nil
2323
}
2424
func TestGetMemInfo(t *testing.T) {

pkg/procInfo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ FDSize: 64`
2020

2121
type spyProcLoader struct{}
2222

23-
func (l *spyProcLoader) Load(string) (string, error) {
23+
func (l *spyProcLoader) load(string) (string, error) {
2424
return procStatus, nil
2525
}
2626
func TestGetProcList(t *testing.T) {

0 commit comments

Comments
 (0)