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: struct_test.go
    path of file: ./repos/goplantuml/parser
    
    the code of the file until where you have to start completion: package parser

import (
	"go/ast"
	"reflect"
	"testing"
)

func TestStructImplementsInterface(t *testing.T) {
	tt := []struct {
		name           string
		structure      *Struct
		inter          *Struct
		expectedResult bool
	}{
		{
			name: "Correct implementation",
			structure: &Struct{
				Functions: []*Function{
					{
						Name: "foo",
					
    
func TestAddField(t *testing.T) {
	st := &Struct{
		PackageName: "main",
		Functions: []*Function{
			{
				Name:                 "foo",
				Parameters:           []*Field{},
				ReturnValues:         []string{"error", "int"},
				FullNameReturnValues: []string{"error", "int"},
			},
		},
		Type:         "class",
		Fields:       make([]*Field, 0),
		Composition:  make(map[string]struct{}),
		Extends:      make(map[string]struct{}),
		Aggregations: make(map[string]struct{}),
	}
	st.AddField(&ast.Field{
		Names: []*ast.Ident{
			{
				Name: "foo",
			},
		},
		Type: &ast.Ident{
			Name: "int",
		},
	}, make(map[string]string))
	if len(st.Fields) != 1 {
		t.Errorf("TestAddField: Expected st.Fields to have exactly one element but it has %d elements", len(st.Fields))
	}
	testField := &Field{
		Name: "foo",
		Type: "int",
	}
	if !reflect.DeepEqual(st.Fields[0], testField) {
		t.Errorf("TestAddField: Expected st.Fields[0] to have %v, got %v", testField, st.Fields[0])
	}
	st.AddField(&ast.Field{
		Names: nil,
		Type: &ast.StarExpr{
			X: &ast.Ident{
				Name: "FooComposed",
			},
		},
	}, make(map[string]string))

	if !arrayContains(st.Composition, "FooComposed") {
		t.Errorf("TestAddField: Expecting FooComposed to be part of the compositions ,but the array had %v", st.Composition)
	}
	st.AddField(&ast.Field{
		Names: []*ast.Ident{
			{
				Name: "Foo",
			},
		},
		Type: &ast.StarExpr{
			X: &ast.Ident{
				Name: "FooComposed",
			},
		},
	}, make(map[string]string))
	if !arrayContains(st.Aggregations, "main.FooComposed") {
		t.Errorf("TestAddField: Expecting main.FooComposed to be part of the aggregations ,but the array had %v", st.Aggregations)
	}
}