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: model_test.go
    path of file: ./repos/kics/pkg/builder/model
    
    the code of the file until where you have to start completion: package model

import (
	"reflect"
	"testing"

	"github.com/Checkmarx/kics/pkg/model"
)

type fields struct {
	Line       int
	IssueType  model.IssueType
	Path       []PathItem
	Value      interface{}
	Attributes map[string]interface{}
}
type args struct {
	name string
}

type testCase struct {
	name   string
	fields fields
	args   args
	want   interface{}
	want1  bool
}


    
func TestCondition_Attr(t *testing.T) {
	tests := []testCase{
		conditionAttrTestCase,
		{
			name: "condition_attr_error",
			fields: fields{
				Line:      1,
				IssueType: "MissingAttribute",
				Path:      []PathItem{},
				Value:     nil,
				Attributes: map[string]interface{}{
					"test": "test2",
				},
			},
			args: args{
				name: "test3",
			},
			want:  nil,
			want1: false,
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			c := getCondition(&tt)
			got, got1 := c.Attr(tt.args.name)
			if !reflect.DeepEqual(got, tt.want) {
				t.Errorf("Condition.Attr() got = %v, want %v", got, tt.want)
			}
			if got1 != tt.want1 {
				t.Errorf("Condition.Attr() got1 = %v, want %v", got1, tt.want1)
			}
		})
	}
}