Add code coverage support.

This commit is contained in:
go-jet 2019-07-19 14:33:54 +02:00
parent 31ec532b6d
commit d1a8b6e132
3 changed files with 9 additions and 21 deletions

View file

@ -743,16 +743,6 @@ func (s *scanContext) typeToColumnIndex(typeName, fieldName string) int {
return index
}
func (s *scanContext) getCellValue(typeName, fieldName string) interface{} {
index := s.typeToColumnIndex(typeName, fieldName)
if index < 0 {
return nil
}
return s.rowElem(index)
}
func (s *scanContext) rowElem(index int) interface{} {
valuer, ok := s.row[index].(driver.Valuer)