diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2018-08-21 22:22:00 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2018-08-21 23:06:10 -0400 |
| commit | 0e79af96f4013d8f1d842b7dac04879a062ed37a (patch) | |
| tree | 6136c68760649e0ee428903ff83c53f2b2569e22 /data/datasource_file_test.go | |
| parent | 4e0bb2579fa6f6d8b04356b170198f1a212ab0ff (diff) | |
Unexporting things that were never meant to be exported...
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'data/datasource_file_test.go')
| -rw-r--r-- | data/datasource_file_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
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) |
