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: xmlreport_test.go
    path of file: ./repos/rules_go/tests/core/go_test
    
    the code of the file until where you have to start completion: // Copyright 2020 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package test_filter_test

import (
	"encoding/xml"
	"io/ioutil
    
func Test(t *testing.T) {
	tests := []struct {
		name     string
		args     []string
		expected xmlTestSuites
	}{
		{
			name: "default",
			args: []string{"test", "//:xml_test"},
			expected: xmlTestSuites{
				XMLName: xml.Name{Local: "testsuites"},
				Suites: []xmlTestSuite{{
					XMLName:  xml.Name{Local: "testsuite"},
					Name:     "github.com/bazelbuild/rules_go/tests/core/go_test/xml_test",
					Errors:   0,
					Failures: 3,
					Tests:    3,
				}},
			},
		},
		{
			name: "verbose",
			args: []string{"test", "--test_env=GO_TEST_WRAP_TESTV=1", "//:xml_test"},
			expected: xmlTestSuites{
				XMLName: xml.Name{Local: "testsuites"},
				Suites: []xmlTestSuite{{
					XMLName:  xml.Name{Local: "testsuite"},
					Name:     "github.com/bazelbuild/rules_go/tests/core/go_test/xml_test",
					Errors:   0,
					Failures: 3,
					Skipped:  1,
					Tests:    7,
				}},
			},
		},
	}

	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			err := bazel_testing.RunBazel(tt.args...)
			if err == nil {
				t.Fatal("expected bazel test to have failed")
			}
			if xerr, ok := err.(*bazel_testing.StderrExitError); !ok || xerr.Err.ExitCode() != 3 {
				t.Fatalf("expected bazel tests to fail with exit code 3 (TESTS_FAILED), got: %s", err)
			}

			p, err := bazel_testing.BazelOutput("info", "bazel-testlogs")
			if err != nil {
				t.Fatal("could not find testlog root: %s", err)
			}
			path := filepath.Join(strings.TrimSpace(string(p)), "xml_test/test.xml")
			b, err := ioutil.ReadFile(path)
			if err != nil {
				t.Fatalf("could not read generated xml file: %s", err)
			}

			var suites xmlTestSuites
			if err := xml.Unmarshal(b, &suites); err != nil {
				t.Fatalf("could not unmarshall generated xml: %s", err)
			}

			if !reflect.DeepEqual(suites, tt.expected) {
				t.Fatalf("expected %#v, got: %#v", tt.expected, suites)
			}
		})
	}
}