From 0e79af96f4013d8f1d842b7dac04879a062ed37a Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Tue, 21 Aug 2018 22:22:00 -0400 Subject: Unexporting things that were never meant to be exported... Signed-off-by: Dave Henderson --- data/datasource_file_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'data/datasource_file_test.go') diff --git a/data/datasource_file_test.go b/data/datasource_file_test.go index bfbaaedb..5bc77396 100644 --- a/data/datasource_file_test.go +++ b/data/datasource_file_test.go @@ -25,25 +25,25 @@ func TestReadFile(t *testing.T) { _, _ = vfs.Create(fs, "/tmp/partial/baz.txt") source := &Source{Alias: "foo", URL: mustParseURL("file:///tmp/foo")} - source.FS = fs + source.fs = fs actual, err := readFile(source) assert.NoError(t, err) assert.Equal(t, content, actual) source = &Source{Alias: "bogus", URL: mustParseURL("file:///bogus")} - source.FS = fs + source.fs = fs _, err = readFile(source) assert.Error(t, err) source = &Source{Alias: "partial", URL: mustParseURL("file:///tmp/partial")} - source.FS = fs + source.fs = fs actual, err = readFile(source, "foo.txt") assert.NoError(t, err) assert.Equal(t, content, actual) source = &Source{Alias: "dir", URL: mustParseURL("file:///tmp/partial/")} - source.FS = fs + source.fs = fs actual, err = readFile(source) assert.NoError(t, err) assert.Equal(t, []byte(`["bar.txt","baz.txt","foo.txt"]`), actual) -- cgit v1.2.3