import (
"bufio"
- "bytes"
"os"
"testing"
// prepare input/output output files
inputData, err := readFile("testdata/ip.api.json")
Expect(err).ShouldNot(HaveOccurred())
- testCtx.inputBuff = bytes.NewBuffer(inputData)
jsonRoot, err := parseJSON(inputData)
Expect(err).ShouldNot(HaveOccurred())
testCtx.packageData, err = parsePackage(testCtx, jsonRoot)
// prepare input/output output files
inputData, err := readFile("testdata/ip.api.json")
Expect(err).ShouldNot(HaveOccurred())
- testCtx.inputBuff = bytes.NewBuffer(inputData)
jsonRoot, err := parseJSON(inputData)
Expect(err).ShouldNot(HaveOccurred())
outDir := "test_output_directory"