synapsecns/sanguine

View on GitHub
core/dbcommon/enum_test.go

Summary

Maintainability
A
35 mins
Test Coverage

Function RunEnumExample has 5 return statements (exceeds 4 allowed).
Open

func RunEnumExample(ctx context.Context, dbDir string) (res []InventoryModel, err error) {
    gdb, err := gorm.Open(sqlite.Open(dbDir), &gorm.Config{
        Logger: dbcommon.GetGormLogger(testDBLogger),
    })
    if err != nil {
Severity: Major
Found in core/dbcommon/enum_test.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status