Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from sampointer/lint
Browse files Browse the repository at this point in the history
correct lint
  • Loading branch information
sampointer authored Apr 4, 2020
2 parents 511d719 + 1ba5996 commit b986999
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion divvyyaml/divvyyaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
)

// Represents a DivvyYaml document and its methods
// DivvyYaml represents a document and its methods
type DivvyYaml struct {
Doc string // The constructed YAML document
}
Expand Down
11 changes: 7 additions & 4 deletions divvyyaml/divvyyaml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@ import (
)

func TestCorrectParse(t *testing.T) {
k8s_good, err := ioutil.ReadFile("../examples/k8s_deployment_output.yaml")
cfn_good, err := ioutil.ReadFile("../examples/cloudformation_ec2_output.yaml")
k8sGood, err := ioutil.ReadFile("../examples/k8s_deployment_output.yaml")
if err != nil {
t.Fatalf("Could not load test data: %v", err)
}

cfnGood, err := ioutil.ReadFile("../examples/cloudformation_ec2_output.yaml")
if err != nil {
t.Fatalf("Could not load test data: %v", err)
}

t.Run("k8s", func(t *testing.T) {
compareDocuments(t, "../examples/k8s_deployment", k8s_good)
compareDocuments(t, "../examples/k8s_deployment", k8sGood)
})
t.Run("cfn", func(t *testing.T) {
compareDocuments(t, "../examples/cloudformation_ec2", cfn_good)
compareDocuments(t, "../examples/cloudformation_ec2", cfnGood)
})
}

Expand Down

0 comments on commit b986999

Please sign in to comment.