mirror of https://github.com/schollz/croc.git
gofmt -s -w
This commit is contained in:
parent
9a70ea90d1
commit
0277abe5d4
|
@ -45,11 +45,10 @@ func TestEncryption(t *testing.T) {
|
|||
|
||||
}
|
||||
|
||||
|
||||
func TestNoEncryption(t *testing.T) {
|
||||
bob, err := New(nil, nil)
|
||||
assert.Nil(t, err)
|
||||
jane, err := New(nil,nil)
|
||||
jane, err := New(nil, nil)
|
||||
assert.Nil(t, err)
|
||||
enc, err := bob.Encrypt([]byte("hello, world"))
|
||||
assert.Nil(t, err)
|
||||
|
@ -57,5 +56,5 @@ func TestNoEncryption(t *testing.T) {
|
|||
assert.Nil(t, err)
|
||||
assert.Equal(t, dec, []byte("hello, world"))
|
||||
assert.Equal(t, enc, []byte("hello, world"))
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -3,10 +3,10 @@ package message
|
|||
import (
|
||||
"encoding/json"
|
||||
|
||||
log "github.com/schollz/logger"
|
||||
"github.com/schollz/croc/v6/src/comm"
|
||||
"github.com/schollz/croc/v6/src/compress"
|
||||
"github.com/schollz/croc/v6/src/crypt"
|
||||
log "github.com/schollz/logger"
|
||||
)
|
||||
|
||||
// Message is the possible payload for messaging
|
||||
|
|
Loading…
Reference in New Issue