From d29ea74783169d7be1e62f067593ae6b08c0a78e Mon Sep 17 00:00:00 2001 From: mleku Date: Sun, 2 Feb 2025 11:31:25 -0106 Subject: [PATCH] remove all the test logging --- pkg/content/content_test.go | 2 -- pkg/event/types/types_test.go | 2 -- pkg/id/id_test.go | 3 --- pkg/pubkey/pubkey_test.go | 3 --- pkg/signature/signature_test.go | 3 --- pkg/tag/tag_test.go | 2 -- 6 files changed, 15 deletions(-) diff --git a/pkg/content/content_test.go b/pkg/content/content_test.go index 268b00d..f3bbe40 100644 --- a/pkg/content/content_test.go +++ b/pkg/content/content_test.go @@ -13,7 +13,6 @@ func TestC_Marshal_Unmarshal(t *testing.T) { if err != nil { t.Fatal(err) } - log.I.S(c) c1 := new(C) c1.Content = c var res []byte @@ -22,7 +21,6 @@ func TestC_Marshal_Unmarshal(t *testing.T) { } // append a fake zero length signature res = append(res, '\n') - log.I.S(res) c2 := new(C) var rem []byte if rem, err = c2.Unmarshal(res); chk.E(err) { diff --git a/pkg/event/types/types_test.go b/pkg/event/types/types_test.go index 73a1515..6b9b6c3 100644 --- a/pkg/event/types/types_test.go +++ b/pkg/event/types/types_test.go @@ -12,7 +12,6 @@ func TestT_Marshal_Unmarshal(t *testing.T) { if res, err = typ.Marshal(nil); chk.E(err) { t.Fatal(err) } - log.I.S(res) t2 := new(T) var rem []byte if rem, err = t2.Unmarshal(res); chk.E(err) { @@ -21,7 +20,6 @@ func TestT_Marshal_Unmarshal(t *testing.T) { if len(rem) > 0 { log.I.S(rem) } - log.I.S(t2) if !bytes.Equal(typ, *t2) { t.Fatal("types.T did not encode/decode faithfully") } diff --git a/pkg/id/id_test.go b/pkg/id/id_test.go index 2cd2c5b..e7fdb8f 100644 --- a/pkg/id/id_test.go +++ b/pkg/id/id_test.go @@ -14,7 +14,6 @@ func TestT_Marshal_Unmarshal(t *testing.T) { if _, err = rand.Read(pk); chk.E(err) { t.Fatal(err) } - log.I.S(pk) var p *P if p, err = New(pk); chk.E(err) { t.Fatal(err) @@ -23,7 +22,6 @@ func TestT_Marshal_Unmarshal(t *testing.T) { if o, err = p.Marshal(nil); chk.E(err) { t.Fatal(err) } - log.I.F("%d %s", len(o), o) p2 := &P{} var rem []byte if rem, err = p2.Unmarshal(o); chk.E(err) { @@ -32,7 +30,6 @@ func TestT_Marshal_Unmarshal(t *testing.T) { if len(rem) > 0 { log.I.F("%d %s", len(rem), rem) } - log.I.S(p2.b) if !bytes.Equal(pk, p2.b) { t.Fatal("public key did not encode/decode faithfully") } diff --git a/pkg/pubkey/pubkey_test.go b/pkg/pubkey/pubkey_test.go index d1f5fdd..5f6c5d6 100644 --- a/pkg/pubkey/pubkey_test.go +++ b/pkg/pubkey/pubkey_test.go @@ -14,7 +14,6 @@ func TestP_Marshal_Unmarshal(t *testing.T) { if _, err = rand.Read(pk); chk.E(err) { t.Fatal(err) } - log.I.S(pk) var p *P if p, err = New(pk); chk.E(err) { t.Fatal(err) @@ -23,7 +22,6 @@ func TestP_Marshal_Unmarshal(t *testing.T) { if o, err = p.Marshal(nil); chk.E(err) { t.Fatal(err) } - log.I.F("%d %s", len(o), o) p2 := &P{} var rem []byte if rem, err = p2.Unmarshal(o); chk.E(err) { @@ -32,7 +30,6 @@ func TestP_Marshal_Unmarshal(t *testing.T) { if len(rem) > 0 { log.I.F("%d %s", len(rem), rem) } - log.I.S(p2.PublicKey) if !bytes.Equal(pk, p2.PublicKey) { t.Fatal("public key did not encode/decode faithfully") } diff --git a/pkg/signature/signature_test.go b/pkg/signature/signature_test.go index a006806..c13439d 100644 --- a/pkg/signature/signature_test.go +++ b/pkg/signature/signature_test.go @@ -14,7 +14,6 @@ func TestS_Marshal_Unmarshal(t *testing.T) { if _, err = rand.Read(sig); chk.E(err) { t.Fatal(err) } - log.I.S(sig) var s *S if s, err = New(sig); chk.E(err) { t.Fatal(err) @@ -23,7 +22,6 @@ func TestS_Marshal_Unmarshal(t *testing.T) { if o, err = s.Marshal(nil); chk.E(err) { t.Fatal(err) } - log.I.F("%d %s", len(o), o) p2 := &S{} var rem []byte if rem, err = p2.Unmarshal(o); chk.E(err) { @@ -32,7 +30,6 @@ func TestS_Marshal_Unmarshal(t *testing.T) { if len(rem) > 0 { log.I.F("%d %s", len(rem), rem) } - log.I.S(p2.Signature) if !bytes.Equal(sig, p2.Signature) { t.Fatal("signature did not encode/decode faithfully") } diff --git a/pkg/tag/tag_test.go b/pkg/tag/tag_test.go index 8588202..84716e6 100644 --- a/pkg/tag/tag_test.go +++ b/pkg/tag/tag_test.go @@ -15,7 +15,6 @@ func TestT_Marshal_Unmarshal(t *testing.T) { if tb, err = t1.Marshal(nil); chk.E(err) { t.Fatal(err) } - log.I.S(tb) t2 := new(T) var rem []byte if rem, err = t2.Unmarshal(tb); chk.E(err) { @@ -25,5 +24,4 @@ func TestT_Marshal_Unmarshal(t *testing.T) { log.I.F("%s", rem) t.Fatal("remainder after tag should have been nothing") } - log.I.S(t2) }