reflectx: fixes to items reported by megacheck

This commit is contained in:
Michał Matczuk
2018-05-25 11:00:45 +02:00
parent aef66f4663
commit daad194304
2 changed files with 1 additions and 6 deletions

View File

@@ -603,7 +603,6 @@ func TestMapperMethodsByName(t *testing.T) {
A0 *B `db:"A0"`
B `db:"A1"`
A2 int
a3 int
}
val := &A{
@@ -811,8 +810,6 @@ func TestMustBe(t *testing.T) {
t.Error("expected panic with *reflect.ValueError")
return
}
if valueErr.Method != "github.com/jmoiron/sqlx/reflectx.TestMustBe" {
}
if valueErr.Kind != reflect.String {
t.Errorf("unexpected Kind: %s", valueErr.Kind)
}