Use vendoring
This commit is contained in:
parent
185262b2e7
commit
d4fd18bff3
20 changed files with 3023 additions and 0 deletions
18
vendor/github.com/nyarla/go-crypt/crypt_test.go
generated
vendored
Normal file
18
vendor/github.com/nyarla/go-crypt/crypt_test.go
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package crypt
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestCrypt(t *testing.T) {
|
||||
if ret := Crypt("testtest", "es"); ret != `esDRYJnY4VaGM` {
|
||||
t.Fatal(fmt.Sprintf(`result of Crypt is musmatch: %+v`, []byte(ret)))
|
||||
}
|
||||
}
|
||||
|
||||
func ExampleCrypt() {
|
||||
fmt.Println(Crypt("testtest", "es"))
|
||||
// Output:
|
||||
// esDRYJnY4VaGM
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue