Skip to content

Add clvm tools IRReader & IRWriter #95

Add clvm tools IRReader & IRWriter

Add clvm tools IRReader & IRWriter #95

GitHub Actions / Test Results succeeded Jan 15, 2024 in 0s

Test Results ✅

Tests passed successfully

✅ TestResults.trx

86 tests were completed in 3s with 86 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
clvm_dotnet.tests.Serialize.To 6✅ 67ms
clvm_dotnet.tests.SExp.AsBin 3✅ 154ms
CLVMDotNet.Tests.BLS.TestStream 1✅ 0ms
CLVMDotNet.Tests.Casts.IntFromBytes 15✅ 2ms
CLVMDotNet.Tests.Casts.IntToBytes 15✅ 4ms
CLVMDotNet.Tests.Casts.LimbsForInt 11✅ 11ms
CLVMDotNet.Tests.CLVMObject.InstantiationTests 9✅ 40ms
CLVMDotNet.Tests.HelperFunctions.MSBMask 12✅ 11ms
CLVMDotNet.Tests.Operators.OperatorTests 1✅ 2ms
CLVMDotNet.Tests.Serialize.AsBin 2✅ 200ms
CLVMDotNet.Tests.Serialize.AtomFromStream 2✅ 115ms
CLVMDotNet.Tests.Serialize.SexpBufferFromStream 4✅ 13ms
CLVMDotNet.Tests.Serialize.SExpFromStream 3✅ 44ms
CLVMDotNet.Tests.SExp.SExpTests 2✅ 177ms

✅ clvm_dotnet.tests.Serialize.To

✅ builds_correct_tree
✅ empty_list_conversions
✅ int_conversions
✅ test_case_1
✅ TestListConversions
✅ TestNullConversions

✅ clvm_dotnet.tests.SExp.AsBin

✅ sexp_AsBinIsCorrectOrder(expected: [255, 1, 128], sexp_list: [1])
✅ sexp_AsBinIsCorrectOrder(expected: [255, 128, 128], sexp_list: [0])
✅ sexp_AsBinIsCorrectOrder(expected: [255, 8, 255, 8, 128], sexp_list: [8, 8])

✅ CLVMDotNet.Tests.BLS.TestStream

✅ TestBLSStream

✅ CLVMDotNet.Tests.Casts.IntFromBytes

✅ IntFromBytes_returns_expectedint(expectedNumberStr: "0", from_bytes: [])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "1", from_bytes: [1])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "1024", from_bytes: [4, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "10241024", from_bytes: [0, 156, 68, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "128", from_bytes: [0, 128])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "16", from_bytes: [16])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "2048", from_bytes: [8, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "204820482048", from_bytes: [47, 176, 64, 136, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "20482048204820482048", from_bytes: [1, 28, 62, 218, 82, ...])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "256", from_bytes: [1, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "32", from_bytes: [32])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "4096", from_bytes: [16, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "512", from_bytes: [2, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "64", from_bytes: [64])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "8", from_bytes: [8])

✅ CLVMDotNet.Tests.Casts.IntToBytes

✅ IntToBytes_returns_expectedbytes(numberStr: "0", expectedBytes: [])
✅ IntToBytes_returns_expectedbytes(numberStr: "1", expectedBytes: [1])
✅ IntToBytes_returns_expectedbytes(numberStr: "1024", expectedBytes: [4, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "10241024", expectedBytes: [0, 156, 68, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "128", expectedBytes: [0, 128])
✅ IntToBytes_returns_expectedbytes(numberStr: "16", expectedBytes: [16])
✅ IntToBytes_returns_expectedbytes(numberStr: "2048", expectedBytes: [8, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "204820482048", expectedBytes: [47, 176, 64, 136, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "20482048204820482048", expectedBytes: [1, 28, 62, 218, 82, ...])
✅ IntToBytes_returns_expectedbytes(numberStr: "256", expectedBytes: [1, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "32", expectedBytes: [32])
✅ IntToBytes_returns_expectedbytes(numberStr: "4096", expectedBytes: [16, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "512", expectedBytes: [2, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "64", expectedBytes: [64])
✅ IntToBytes_returns_expectedbytes(numberStr: "8", expectedBytes: [8])

✅ CLVMDotNet.Tests.Casts.LimbsForInt

✅ LimbsForInt_returns_expectedlength(numStr: "0", expectedNumberOfBytes: 0)
✅ LimbsForInt_returns_expectedlength(numStr: "1", expectedNumberOfBytes: 1)
✅ LimbsForInt_returns_expectedlength(numStr: "1024", expectedNumberOfBytes: 2)
✅ LimbsForInt_returns_expectedlength(numStr: "10241024", expectedNumberOfBytes: 4)
✅ LimbsForInt_returns_expectedlength(numStr: "128", expectedNumberOfBytes: 2)
✅ LimbsForInt_returns_expectedlength(numStr: "16", expectedNumberOfBytes: 1)
✅ LimbsForInt_returns_expectedlength(numStr: "204820482048", expectedNumberOfBytes: 5)
✅ LimbsForInt_returns_expectedlength(numStr: "20482048204820482048", expectedNumberOfBytes: 9)
✅ LimbsForInt_returns_expectedlength(numStr: "32", expectedNumberOfBytes: 1)
✅ LimbsForInt_returns_expectedlength(numStr: "64", expectedNumberOfBytes: 1)
✅ LimbsForInt_returns_expectedlength(numStr: "8", expectedNumberOfBytes: 1)

✅ CLVMDotNet.Tests.CLVMObject.InstantiationTests

✅ Constructor_with_atom_sets_atom(atom: "")
✅ Constructor_with_atom_sets_atom(atom: 1)
✅ Constructor_with_atom_sets_atom(atom: 3)
✅ Constructor_with_invalid_tuple_shape
✅ Constructor_with_sexp_sets_atom
✅ Constructor_with_tuple_sets_pair(left: "", right: "")
✅ Constructor_with_tuple_sets_pair(left: "", right: null)
✅ Constructor_with_tuple_sets_pair(left: 3, right: 3)
✅ Constructor_with_tuple_sets_pair(left: null, right: null)

✅ CLVMDotNet.Tests.HelperFunctions.MSBMask

✅ TestMsbMask(expectedbyte: 0, MSB: 0)
✅ TestMsbMask(expectedbyte: 1, MSB: 1)
✅ TestMsbMask(expectedbyte: 128, MSB: 128)
✅ TestMsbMask(expectedbyte: 128, MSB: 255)
✅ TestMsbMask(expectedbyte: 16, MSB: 16)
✅ TestMsbMask(expectedbyte: 2, MSB: 2)
✅ TestMsbMask(expectedbyte: 32, MSB: 32)
✅ TestMsbMask(expectedbyte: 32, MSB: 42)
✅ TestMsbMask(expectedbyte: 4, MSB: 4)
✅ TestMsbMask(expectedbyte: 64, MSB: 64)
✅ TestMsbMask(expectedbyte: 64, MSB: 68)
✅ TestMsbMask(expectedbyte: 8, MSB: 8)

✅ CLVMDotNet.Tests.Operators.OperatorTests

✅ TestUnknownOpsLastBits

✅ CLVMDotNet.Tests.Serialize.AsBin

✅ TestEmpty
✅ TestZero

✅ CLVMDotNet.Tests.Serialize.AtomFromStream

✅ AtomFromStreamEmptyString
✅ AtomFromStreamMaxSingleByte

✅ CLVMDotNet.Tests.Serialize.SexpBufferFromStream

✅ DeserializeTruncatedBlobTest
✅ DeserializeTruncatedSizeTest
✅ TestDeserializeEmpty
✅ TestDeserializeLargeBlob

✅ CLVMDotNet.Tests.Serialize.SExpFromStream

✅ DeserializeTruncatedBlobTest
✅ DeserializeTruncatedSizeTest
✅ TestDeserializeEmpty

✅ CLVMDotNet.Tests.SExp.SExpTests

✅ TestStringConversions
✅ TestWrapSExp