ReadJSONFromFile reads a given input file to JSON
(t *testing.T, inputFile string)
| 7 | |
| 8 | // ReadJSONFromFile reads a given input file to JSON |
| 9 | func ReadJSONFromFile(t *testing.T, inputFile string) []byte { |
| 10 | inputJSON, err := ioutil.ReadFile(inputFile) |
| 11 | if err != nil { |
| 12 | t.Errorf("could not open test file. details: %v", err) |
| 13 | } |
| 14 | |
| 15 | return inputJSON |
| 16 | } |
no outgoing calls
searching dependent graphs…