Skip to content

Commit

Permalink
Merge pull request #9 from sshaplygin/add-swift-package
Browse files Browse the repository at this point in the history
add: swift package
  • Loading branch information
sshaplygin authored Dec 24, 2023
2 parents 9bc2d11 + 8ec74c8 commit a3faab7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# Test binary, built with `go test -c`
*.test
*.xml

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

# IDE
.idea
.vscode
.vscode
9 changes: 9 additions & 0 deletions swift/swift.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package swift

func Validate(bik string) (bool, error) {
panic("not implmented!")
}

func Generate() string {
panic("not implemented!")
}
19 changes: 19 additions & 0 deletions swift/swift_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package swift

import (
"testing"

"github.com/stretchr/testify/require"
)

func Test_Validete(t *testing.T) {
require.Panics(t, func() {
Validate("")

Check failure on line 11 in swift/swift_test.go

View workflow job for this annotation

GitHub Actions / build

Error return value is not checked (errcheck)
})
}

func Test_Generate(t *testing.T) {
require.Panics(t, func() {
Generate()
})
}

0 comments on commit a3faab7

Please sign in to comment.