bpicode/fritzctl

View on GitHub
fritz/concurrent_test.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function TestScatterGatherAllNotOk has 11 return statements (exceeds 4 allowed).
Open

func TestScatterGatherAllNotOk(t *testing.T) {

    work := map[string]func() (string, error){
        "1": func() (string, error) { return "", errors.New("1 says not ok") },
        "2": func() (string, error) { return "", errors.New("2 says not ok") },
Severity: Major
Found in fritz/concurrent_test.go - About 1 hr to fix

    Function TestScatterGatherMixedResults has 11 return statements (exceeds 4 allowed).
    Open

    func TestScatterGatherMixedResults(t *testing.T) {
    
        work := map[string]func() (string, error){
            "1": func() (string, error) { return "1 says OK", nil },
            "2": func() (string, error) { return "", errors.New("2 says not ok") },
    Severity: Major
    Found in fritz/concurrent_test.go - About 1 hr to fix

      Function TestScatterGatherAllOk has 10 return statements (exceeds 4 allowed).
      Open

      func TestScatterGatherAllOk(t *testing.T) {
      
          work := map[string]func() (string, error){
              "1": func() (string, error) { return "1 says OK", nil },
              "2": func() (string, error) { return "2 says OK", nil },
      Severity: Major
      Found in fritz/concurrent_test.go - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status