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: processor_protobuf_test.go
    path of file: ./repos/benthos/internal/impl/protobuf
    
    the code of the file until where you have to start completion: package protobuf

import (
	"context"
	"fmt"
	"strconv"
	"testing"

	"github.com/str
    
func TestProtobufErrors(t *testing.T) {
	type testCase struct {
		name       string
		operator   string
		message    string
		importPath string
		input      string
		output     string
	}

	tests := []testCase{
		{
			name:       "json to protobuf unknown field",
			operator:   "from_json",
			message:    "testing.Person",
			importPath: "../../../config/test/protobuf/schema",
			input:      `{"firstName":"john","lastName":"oates","ageFoo":10}`,
			output:     "unknown field \"ageFoo\"",
		},
		{
			name:       "json to protobuf invalid value",
			operator:   "from_json",
			message:    "testing.Person",
			importPath: "../../../config/test/protobuf/schema",
			input:      `not valid json`,
			output:     "syntax error (line 1:1): invalid value not",
		},
		{
			name:       "json to protobuf invalid string",
			operator:   "from_json",
			message:    "testing.Person",
			importPath: "../../../config/test/protobuf/schema",
			input:      `{"firstName":5,"lastName":"quaye","email":"caleb@myspace.com"}`,
			output:     "invalid value for string type: 5",
		},
	}

	for _, test := range tests {
		t.Run(test.name, func(tt *testing.T) {
			conf, err := protobufProcessorSpec().ParseYAML(fmt.Sprintf(`
operator: %v
message: %v
import_paths: [ %v ]
`, test.operator, test.message, test.importPath), nil)
			require.NoError(t, err)

			proc, err := newProtobuf(conf, service.MockResources())
			require.NoError(t, err)

			_, err = proc.Process(context.Background(), service.NewMessage([]byte(test.input)))
			require.Error(t, err)
			require.Contains(t, err.Error(), test.output)
		})
	}
}