Skip to content

Commit ce22c4b

Browse files
committed
add: ks package
1 parent 2836a40 commit ce22c4b

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

ks/ks.go

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

ks/ks_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package ks
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+
_, err := Validate("")
12+
require.NoError(t, err)
13+
})
14+
}
15+
16+
func Test_Generate(t *testing.T) {
17+
require.Panics(t, func() {
18+
Generate()
19+
})
20+
}

0 commit comments

Comments
 (0)