Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
djeebus committed Apr 10, 2024
1 parent dffe3df commit 13a0339
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions pkg/checks/hooks/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ package hooks
import (
"context"
"encoding/json"
"strings"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"

"github.com/zapier/kubechecks/pkg"
"github.com/zapier/kubechecks/pkg/checks"
)
Expand All @@ -25,20 +22,6 @@ func toJson(obj data) string {
return string(data)
}

func toYaml(obj data) string {
var buf strings.Builder
enc := yaml.NewEncoder(&buf)
enc.SetIndent(2)

err := enc.Encode(obj)
if err != nil {
panic(err)
}

text := buf.String()
return strings.TrimSpace(text)
}

func TestCheck(t *testing.T) {
ctx := context.Background()

Expand Down

0 comments on commit 13a0339

Please sign in to comment.