asteris-llc/converge

View on GitHub
resource/systemd/unit/utils_linux_test.go

Summary

Maintainability
A
1 hr
Test Coverage

Function assertCorrectTypeProperties has 20 return statements (exceeds 4 allowed).
Open

func assertCorrectTypeProperties(t *testing.T, u *Unit) {
    checks := map[string]func() bool{
        "service":   func() bool { return u.ServiceProperties == nil },
        "socket":    func() bool { return u.SocketProperties == nil },
        "device":    func() bool { return u.DeviceProperties == nil },
Severity: Major
Found in resource/systemd/unit/utils_linux_test.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status