You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: json_test.go
    path of file: ./repos/kics/pkg/report
    
    the code of the file until where you have to start completion: package report

import (
	"encoding/json"
	"fmt"
	"os"
	"path/filepath"
	"testing"

	"github.com/Checkmarx/kics/pkg/model"
	"github.com/Checkmarx/kics/test"
	"github.com/stretchr/testify/require"
)

type jsonCaseTest struct {
	summary  model.Summary
	path     string
	filename string
}

var jsonTests = []struct {
	caseTest       jsonCaseTest
	expectedResult model.Summary
}{
	{
		caseTest: jsonCaseTest{
			summary:  test.SummaryMock,
			path:     "./testdir",
			filename: "testout",
		},
		expectedResult: test.SummaryMock,
	},
	{
		caseTest: jsonCaseTest{
			summary:  test.SummaryMockCWE,
			path:     "./testdir",
			filename: "testout2"
    
func TestPrintJSONReport(t *testing.T) {
	for idx, test := range jsonTests {
		t.Run(fmt.Sprintf("JSON File test case %d", idx), func(t *testing.T) {
			test.expectedResult.Version = "development"
			var err error
			if err = os.MkdirAll(test.caseTest.path, os.ModePerm); err != nil {
				t.Fatal(err)
			}
			err = PrintJSONReport(test.caseTest.path, test.caseTest.filename, test.caseTest.summary)
			require.NoError(t, err)
			require.FileExists(t, filepath.Join(test.caseTest.path, test.caseTest.filename+".json"))
			var jsonResult []byte
			jsonResult, err = os.ReadFile(filepath.Join(test.caseTest.path, test.caseTest.filename+".json"))
			require.NoError(t, err)
			var resultSummary model.Summary
			err = json.Unmarshal(jsonResult, &resultSummary)
			require.NoError(t, err)
			resultSummary.Queries[0].Files[0].VulnLines = &[]model.CodeLine{}
			resultSummary.Queries[0].Files[1].VulnLines = &[]model.CodeLine{}
			require.Equal(t, test.expectedResult, resultSummary)
			os.RemoveAll(test.caseTest.path)
		})
	}
}