Skip to content

Commit ad52c49

Browse files
Merge pull request #46 from logic-building/gofmt-standard
updated code autogeneration compatible with gofmt
2 parents 04914a2 + 555edce commit ad52c49

File tree

7 files changed

+8
-1
lines changed

7 files changed

+8
-1
lines changed

fp/droplast_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"reflect"
55
"testing"
66
)
7+
78
func TestDropLastInt(t *testing.T) {
89
list := []int{1, 2, 3, 4, 5}
910
expectedList := []int{1, 2, 3, 4}

fp/filtermapio_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"testing"
66
)
77

8+
89
func TestFilterMapIntInt64(t *testing.T) {
910
// Test : some logic
1011
expectedList := []int64{3, 4}

fp/mapio_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"testing"
66
)
77

8+
89
func TestMapIntInt64(t *testing.T) {
910
// Test : add 1 to the list
1011
expectedList := []int64{2, 3, 4}

fp/merge_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"testing"
66
)
77

8+
89
func TestMergeInt(t *testing.T) {
910
map1 := map[int]int{1: 10, 2: 20, 3: 30}
1011
map2 := map[int]int{4: 40, 5: 50, 3: 30}

fp/pmapio_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"testing"
66
)
77

8+
89
func TestPmapIntInt64(t *testing.T) {
910
// Test : add 1 to the list
1011
expectedList := []int64{2, 3, 4}

fp/zip_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"testing"
66
)
77

8+
89
func TestZipInt(t *testing.T) {
910

1011
list1 := []int{1, 2, 3, 4}

internal/generatefp.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ var importTestTemplate = `
134134
import (
135135
"reflect"
136136
"testing"
137-
)`
137+
)
138+
`
138139

139140
func main() {
140141
fmt.Println("Generating fp code")

0 commit comments

Comments
 (0)