gogjango/gjango

View on GitHub
mockgopg/orm.go

Summary

Maintainability
A
2 hrs
Test Coverage

goPgDB has 21 methods (exceeds 20 allowed). Consider refactoring.
Open

type goPgDB struct {
    sqlMock *SQLMock
}
Severity: Minor
Found in mockgopg/orm.go - About 2 hrs to fix

    Method goPgDB.doQuery has 5 return statements (exceeds 4 allowed).
    Open

    func (p *goPgDB) doQuery(ctx context.Context, dst interface{}, query string, params ...interface{}) (orm.Result, error) {
        // replace duplicate space
        space := regexp.MustCompile(`\s+`)
    
        for k, v := range p.sqlMock.queries {
    Severity: Major
    Found in mockgopg/orm.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status