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: enforcement_test.go
    path of file: ./repos/oso/languages/go/tests
    
    the code of the file until where you have to start completion: package oso_test

import (
	"fmt"
	"reflect"
	"runtime"
	"testing"

	oso "github.com/osohq/go-oso"
	"github.com/osohq/go-oso/errors"
	"github.com/osohq/go-oso/types"
)

type Request struct {
	Method string
	Path   string
}

func getOso(t *testing.T) oso.Oso {
	var o oso.Oso
	var err error
	if o, err = oso.NewOso(); err != nil {
		t.Fatalf("Failed to set up Oso: %v", err)
	}

	o.RegisterClassWithNameAndFields(reflect.TypeOf(User{}), nil, "User", map[string]interface{}{
		"Name": "String",
	})
	o.RegisterClassWithNameAndFields(reflect.TypeOf(Widget{}), nil, "Widget", map[string]in
    
func TestAuthorizeRequest(t *testing.T) {
	o := getOso(t)
	var err error

	guest := User{Name: "guest"}
	verified := User{Name: "verified"}

	if err = o.LoadString("allow_request(_: User{Name: \"guest\"}, request: Request) if " +
		"  request.Path = \"/repos\"; " +
		"allow_request(_: User{Name: \"verified\"}, request: Request) if " +
		"  request.Path = \"/account\"; "); err != nil {

		t.Errorf("LoadString returned error: %v", err)
	}

	if err = o.AuthorizeRequest(guest, Request{"GET", "/repos"}); err != nil {
		t.Errorf("Authorize returned error for allowed action: %v", err)
	}
	err = o.AuthorizeRequest(guest, Request{"GET", "/other"})
	assertAuthorizationError(t, err, false)

	if err = o.AuthorizeRequest(verified, Request{"GET", "/account"}); err != nil {
		t.Errorf("Authorize returned error for allowed action: %v", err)
	}
	err = o.AuthorizeRequest(guest, Request{"GET", "/account"})
	assertAuthorizationError(t, err, false)
}