Skip to content

Commit 8ec74c8

Browse files
committed
add: swift package
1 parent 9bc2d11 commit 8ec74c8

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
# Test binary, built with `go test -c`
99
*.test
10+
*.xml
1011

1112
# Output of the go coverage tool, specifically when used with LiteIDE
1213
*.out
@@ -16,4 +17,4 @@
1617

1718
# IDE
1819
.idea
19-
.vscode
20+
.vscode

swift/swift.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package swift
2+
3+
func Validate(bik string) (bool, error) {
4+
panic("not implmented!")
5+
}
6+
7+
func Generate() string {
8+
panic("not implemented!")
9+
}

swift/swift_test.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package swift
2+
3+
import (
4+
"testing"
5+
6+
"github.com/stretchr/testify/require"
7+
)
8+
9+
func Test_Validete(t *testing.T) {
10+
require.Panics(t, func() {
11+
Validate("")
12+
})
13+
}
14+
15+
func Test_Generate(t *testing.T) {
16+
require.Panics(t, func() {
17+
Generate()
18+
})
19+
}

0 commit comments

Comments
 (0)