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: binding_test.go
    path of file: ./repos/gorsk/pkg/utl/server
    
    the code of the file until where you have to start completion: package server_test

import (
	"bytes"
	"net/http"
	"net/http/httptest"
	"testing"

	"github.com/go-playground/validator"
	"github.com/labstack/echo"
	"github.com/ribice/gorsk/pkg/utl/server"
	"github.com/stretchr/testify/assert"
)

type Req struct {
	Name string `json:"name" validate:"required"`
}

func TestBind(t *testing.T) {
	cases := []struct {
		name     string
		req      string
		wantErr  bool
		wantData *Req
	}{
		{
			name:     "Fail on binding",
			wantErr:  true,
			req:      `"bleja"`,
			wantData: &Req{Name: ""},
		},
		{
			name:     "Fail on validation",
			wantErr:  true,
			wantData: &Req{Name: ""},
		},
		{
			name:     "Success",
			req:      `{"name":"John"}`,
			wantData: &Req{Name: "John"},
		},
	}
	b := server.NewBinder()
	for _, tt := range cases {
		t.Run
    
func TestBind(t *testing.T) {
	cases := []struct {
		name     string
		req      string
		wantErr  bool
		wantData *Req
	}{
		{
			name:     "Fail on binding",
			wantErr:  true,
			req:      `"bleja"`,
			wantData: &Req{Name: ""},
		},
		{
			name:     "Fail on validation",
			wantErr:  true,
			wantData: &Req{Name: ""},
		},
		{
			name:     "Success",
			req:      `{"name":"John"}`,
			wantData: &Req{Name: "John"},
		},
	}
	b := server.NewBinder()
	for _, tt := range cases {
		t.Run(tt.name, func(t *testing.T) {
			w := httptest.NewRecorder()
			req, _ := http.NewRequest("POST", "", bytes.NewBufferString(tt.req))
			req.Header.Set("Content-Type", "application/json")
			e := echo.New()
			e.Validator = &server.CustomValidator{V: validator.New()}
			e.Binder = server.NewBinder()
			c := e.NewContext(req, w)
			r := new(Req)
			err := b.Bind(r, c)
			assert.Equal(t, tt.wantData, r)
			assert.Equal(t, tt.wantErr, err != nil)
		})
	}

}