Bnei-Baruch/mdb

View on GitHub
api/autoname_test.go

Summary

Maintainability
A
1 hr
Test Coverage

Method AutonameSuite.TestSourceNamers has 74 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (suite *AutonameSuite) TestSourceNamers() {
    author := &models.Author{ID: -1}
    author.L.LoadAuthorI18ns(suite.tx, true, author, nil) // dummy call to initialize R
    author.R.AuthorI18ns = make(models.AuthorI18nSlice, 0)
    author.R.AuthorI18ns = append(author.R.AuthorI18ns,
Severity: Minor
Found in api/autoname_test.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status