Skip to content

Commit

Permalink
switch to the idiomatic "testdata" directory
Browse files Browse the repository at this point in the history
  • Loading branch information
teepark committed Jan 13, 2017
1 parent 04ef90f commit 4069f29
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions usage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@ var testUsageTableResult, testUsageListResult, testUsageCustomResult, testUsageB
func TestMain(m *testing.M) {

// Load the expected test results from a text file
data, err := ioutil.ReadFile("test_files/default_table.txt")
data, err := ioutil.ReadFile("testdata/default_table.txt")
if err != nil {
log.Fatal(err)
}
testUsageTableResult = string(data)

data, err = ioutil.ReadFile("test_files/default_list.txt")
data, err = ioutil.ReadFile("testdata/default_list.txt")
if err != nil {
log.Fatal(err)
}
testUsageListResult = string(data)

data, err = ioutil.ReadFile("test_files/custom.txt")
data, err = ioutil.ReadFile("testdata/custom.txt")
if err != nil {
log.Fatal(err)
}
testUsageCustomResult = string(data)

data, err = ioutil.ReadFile("test_files/fault.txt")
data, err = ioutil.ReadFile("testdata/fault.txt")
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 4069f29

Please sign in to comment.