diff --git a/coding_test.go b/coding_test.go index 18dca4c..8961acc 100644 --- a/coding_test.go +++ b/coding_test.go @@ -7,11 +7,12 @@ import ( "github.com/samber/lo" "github.com/securemesh/coding" + "github.com/securemesh/coding/seeds" ) func TestSimple(t *testing.T) { msg := []byte("this is a test. this is only a test.") - encoded := coding.Encode(coding.ChatHeap(), msg) + encoded := coding.Encode(seeds.ChatHeap(), msg) t.Logf("orig=%d encoded=%d", len(msg), len(encoded)) } @@ -26,7 +27,7 @@ func TestSMS(t *testing.T) { for s.Scan() { msg := s.Bytes() - e := coding.Encode(coding.ChatHeap(), msg) + e := coding.Encode(seeds.ChatHeap(), msg) orig += len(msg) encoded += len(e) } diff --git a/seeds.go b/seeds/seeds.go similarity index 97% rename from seeds.go rename to seeds/seeds.go index 29cfbef..2ddc35e 100644 --- a/seeds.go +++ b/seeds/seeds.go @@ -1,4 +1,4 @@ -package coding +package seeds import ( "github.com/securemesh/coding/heap"