Skip to content

Commit

Permalink
solve
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Nov 16, 2023
1 parent 26d32e5 commit 4a6c15a
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions compress/compress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,28 @@ package compress
import (
"os"
"testing"
"fmt"

Check failure on line 6 in compress/compress_test.go

View workflow job for this annotation

GitHub Actions / build (1.18.x)

imported and not used: "fmt"

Check failure on line 6 in compress/compress_test.go

View workflow job for this annotation

GitHub Actions / build (1.19.x)

imported and not used: "fmt"

Check failure on line 6 in compress/compress_test.go

View workflow job for this annotation

GitHub Actions / build (1.20.x)

"fmt" imported and not used

Check failure on line 6 in compress/compress_test.go

View workflow job for this annotation

GitHub Actions / build (1.21.x)

"fmt" imported and not used
)

func TestNewCompress(t *testing.T) {
//
c, err := GetCompress()
if err != nil {
t.Fatalf(err.Error())
}
c.IsDebug()
}


func GetCompress() ( ICompress, error ) {
//
apiKey := os.Getenv("API_KEY")
customerName := os.Getenv("CUSTOMER_NAME")
//
c, err := NewCompress(customerName, apiKey, false)
c, err := &NewCompress(customerName, apiKey, false)

Check failure on line 24 in compress/compress_test.go

View workflow job for this annotation

GitHub Actions / build (1.18.x)

multiple-value NewCompress(customerName, apiKey, false) (value of type (ICompress, error)) in single-value context

Check failure on line 24 in compress/compress_test.go

View workflow job for this annotation

GitHub Actions / build (1.19.x)

multiple-value NewCompress(customerName, apiKey, false) (value of type (ICompress, error)) in single-value context

Check failure on line 24 in compress/compress_test.go

View workflow job for this annotation

GitHub Actions / build (1.20.x)

multiple-value NewCompress(customerName, apiKey, false) (value of type (ICompress, error)) in single-value context

Check failure on line 24 in compress/compress_test.go

View workflow job for this annotation

GitHub Actions / build (1.21.x)

multiple-value NewCompress(customerName, apiKey, false) (value of type (ICompress, error)) in single-value context
if err != nil {
t.Fatalf(err.Error())
return nil, err
}
c.IsDebug()
//
return c, nil
}

0 comments on commit 4a6c15a

Please sign in to comment.