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

import (
	"bytes"
	"io"
	"reflect"
	"testing"
)

func TestNewBufferImporter(t *testing.T) {
	type args struct {
	
    
func TestNewBufferImporter(t *testing.T) {
	type args struct {
		tableName string
		r         io.Reader
		options   []ReadOpt
	}
	tests := []struct {
		name    string
		args    args
		want    string
		wantErr bool
	}{
		{
			name: "test1",
			args: args{
				tableName: "test",
				r:         bytes.NewBufferString("test"),
				options:   []ReadOpt{InFormat(CSV)},
			},
			want:    "test",
			wantErr: false,
		},
		{
			name: "testErr",
			args: args{
				tableName: "testErr",
				r:         bytes.NewBufferString("testErr"),
				options:   []ReadOpt{InFormat(VF)},
			},
			want:    "testErr",
			wantErr: true,
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			got, err := NewBufferImporter(tt.args.tableName, tt.args.r, tt.args.options...)
			if (err != nil) != tt.wantErr {
				t.Errorf("NewBufferImporter() error = %v, wantErr %v", err, tt.wantErr)
				return
			}
			if got != nil {
				if !reflect.DeepEqual(got.tableName, tt.want) {
					t.Errorf("NewBufferImporter() = %v, want %v", got, tt.want)
				}
			}
		})
	}
}