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

import (
	"github.com/shopspring/decimal"
	"reflect"
	"testing"
)

func TestToInt(t *testing.T) {
	type args struct {
		s string
	}
	tests := []struct {
		name string
		args args
		want int
	}{
		{
			name: "",
			args: args{
			
    
func TestToIntE(t *testing.T) {
	type args struct {
		s string
	}
	tests := []struct {
		name    string
		args    args
		want    int
		wantErr bool
	}{
		{
			name: "",
			args: args{
				s: "21",
			},
			want:    21,
			wantErr: false,
		},
		{
			name: "",
			args: args{
				s: "21a",
			},
			want:    0,
			wantErr: true,
		},
		{
			name: "",
			args: args{
				s: "",
			},
			want:    0,
			wantErr: true,
		},
		{
			name: "",
			args: args{
				s: "003",
			},
			want:    3,
			wantErr: false,
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			got, err := ToIntE(tt.args.s)
			if (err != nil) != tt.wantErr {
				t.Errorf("ToIntE() error = %v, wantErr %v", err, tt.wantErr)
				return
			}
			if got != tt.want {
				t.Errorf("ToIntE() got = %v, want %v", got, tt.want)
			}
		})
	}
}