MCPcopy
hub / github.com/aws/aws-lambda-go / ReadJSONFromFile

Function ReadJSONFromFile

events/test/readjson.go:9–16  ·  view source on GitHub ↗

ReadJSONFromFile reads a given input file to JSON

(t *testing.T, inputFile string)

Source from the content-addressed store, hash-verified

7
8// ReadJSONFromFile reads a given input file to JSON
9func 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}

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…