Skip to content

Commit

Permalink
update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoell committed Jun 18, 2024
1 parent 188c672 commit 9e11977
Show file tree
Hide file tree
Showing 4 changed files with 109,130 additions and 19 deletions.
19 changes: 0 additions & 19 deletions codec/antelope/types_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package antelope

import (
"encoding/hex"
"encoding/json"
"fmt"
"github.com/eoscanada/eos-go"
"testing"
"unicode/utf8"

Expand Down Expand Up @@ -48,18 +44,3 @@ func TestLimitConsoleLengthConversionOption(t *testing.T) {
})
}
}

func TestBlockExtensionsToDEOS(t *testing.T) {

qcBytes, err := hex.DecodeString("053512000115fffb1f00c0016d7c4c1762ce7320572ef02a04dcbae1822af1658c2c65b441a6b214e1a7a5fc098667519359e84a19b2a22723905f02cf184696e292af4ac8d35c59818d4f7956a27aad59e802f7f2ead304d32cad13c2570c29e7797b1127a9748740b2b40cb5d1b0ecd83755ce03eaca747228ef1d05316fd970467d1b28529cd0f1f96a4cb750d7460bde5ceb05baa778e3f1fd033175f4689b8745bd89cdaa681883b076e4a5423a9c0e27490e188579be18d1f6932112c389875d9d25f567b06c410418")
assert.NoError(t, err)

res := &eos.QuorumCertificateExtension{}
err = eos.NewDecoder(qcBytes).Decode(res)
assert.NoError(t, err)

fmt.Println(res.QuorumCertificate.ValidQuorumCertificate.BlsAggregateSignature.String())

resJson, _ := json.Marshal(&res)
fmt.Println(string(resJson))
}
1 change: 1 addition & 0 deletions codec/consolereader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func TestParseFromFile(t *testing.T) {
{"full-3.1.x", "testdata/deep-mind-3.1.x.dmlog", false /*nil, nil*/},
{"full-5.0.x", "testdata/deep-mind-5.0.x.dmlog", false /*nil, nil*/},
{"dmlog", "testdata/dm.log", true /*nil, nil*/},
{"full-spring-1.0.x", "testdata/deep-mind-spring-1.0.x.dmlog", false /*nil, nil*/},
// {"max-console-log", "testdata/deep-mind.dmlog", blockWithConsole /*[]ConsoleReaderOption{LimitConsoleLength(10)}*/},
}

Expand Down
Loading

0 comments on commit 9e11977

Please sign in to comment.