Skip to content

Commit

Permalink
Revert package renaming for git diff
Browse files Browse the repository at this point in the history
  • Loading branch information
bbckr committed Nov 19, 2024
1 parent b20f6ec commit 4c47d97
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/hclmerge/hclmerge.go → hcl/hcl.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright SeatGeek
* Licensed under the terms of the Apache-2.0 license. See LICENSE file in project root for terms.
*/
package hclmerge
package hcl

import (
"fmt"
Expand Down
12 changes: 6 additions & 6 deletions packages/hclmerge/hclmerge_test.go → hcl/hcl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
* Copyright SeatGeek
* Licensed under the terms of the Apache-2.0 license. See LICENSE file in project root for terms.
*/
package hclmerge_test
package hcl_test

import (
"testing"

"github.com/seatgeek/node-hcl/packages/hclmerge"
"github.com/seatgeek/node-hcl/hcl"
"github.com/stretchr/testify/assert"
)

Expand All @@ -17,7 +17,7 @@ func TestMerge(t *testing.T) {
type input struct {
a string
b string
options *hclmerge.MergeOptions
options *hcl.MergeOptions
}

tests := []struct {
Expand Down Expand Up @@ -135,7 +135,7 @@ variable "b" {
}
}
`,
options: &hclmerge.MergeOptions{
options: &hcl.MergeOptions{
MergeMapKeys: true,
},
},
Expand Down Expand Up @@ -197,7 +197,7 @@ variable "b" {
}
}
}`,
options: &hclmerge.MergeOptions{
options: &hcl.MergeOptions{
MergeMapKeys: true,
},
},
Expand Down Expand Up @@ -238,7 +238,7 @@ variable "b" {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

merger := hclmerge.NewMerger(tc.input.options)
merger := hcl.NewMerger(tc.input.options)
got, err := merger.Merge(tc.input.a, tc.input.b)
assert.Equal(t, tc.want, got)

Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"syscall/js"

"github.com/seatgeek/node-hcl/packages/hclmerge"
"github.com/seatgeek/node-hcl/hcl"
)

var jsGlobal js.Value
Expand Down Expand Up @@ -58,7 +58,7 @@ func main() {
return nil, fmt.Errorf("Invalid second argument type, expected string")
}

options := &hclmerge.MergeOptions{}
options := &hcl.MergeOptions{}

if argCount == 3 {
arg2Type := args[2].Type()
Expand All @@ -74,7 +74,7 @@ func main() {
aHclString := args[0].String()
bHclString := args[1].String()

hclmerger := hclmerge.NewMerger(options)
hclmerger := hcl.NewMerger(options)
return hclmerger.Merge(aHclString, bHclString)
})

Expand Down

0 comments on commit 4c47d97

Please sign in to comment.