asteris-llc/converge

View on GitHub
resource/file/fetch/fetch_test.go

Summary

Maintainability
D
2 days
Test Coverage

Function TestApply has 283 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestApply(t *testing.T) {
    t.Parallel()

    t.Run("hash error", func(t *testing.T) {
        task := fetch.Fetch{
Severity: Major
Found in resource/file/fetch/fetch_test.go - About 1 day to fix

    Function TestDiffFile has 188 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func TestDiffFile(t *testing.T) {
        t.Parallel()
    
        t.Run("fetch new file", func(t *testing.T) {
            t.Run("with checksum", func(t *testing.T) {
    Severity: Major
    Found in resource/file/fetch/fetch_test.go - About 6 hrs to fix

      File fetch_test.go has 579 lines of code (exceeds 500 allowed). Consider refactoring.
      Open

      // Copyright © 2016 Asteris, LLC
      //
      // Licensed under the Apache License, Version 2.0 (the "License");
      // you may not use this file except in compliance with the License.
      // You may obtain a copy of the License at
      Severity: Minor
      Found in resource/file/fetch/fetch_test.go - About 3 hrs to fix

        There are no issues that match your filters.

        Category
        Status