@@ -16,6 +16,10 @@
Loading
16 16
                = new HashDigest<SHA256>(TestUtils.GetRandomBytes(HashDigest<SHA256>.Size));
17 17
            var merkleTrie = new MerkleTrie(new MemoryKeyValueStore(), hashDigest);
18 18
            Assert.Equal(hashDigest, merkleTrie.Hash);
19 +
20 +
            // See https://github.com/planetarium/libplanet/pull/1091
21 +
            merkleTrie = new MerkleTrie(new MemoryKeyValueStore(), MerkleTrie.EmptyRootHash);
22 +
            Assert.Null(merkleTrie.Root);
19 23
        }
20 24
21 25
        [Fact]

@@ -71,7 +71,7 @@
Loading
71 71
72 72
        public HashDigest<SHA256> Hash => Root?.Hash() ?? EmptyRootHash;
73 73
74 -
        private INode? Root { get; }
74 +
        internal INode? Root { get; }
75 75
76 76
        private IKeyValueStore KeyValueStore { get; }
77 77
Files Coverage
Libplanet 86.34%
Libplanet.Analyzers.Tests 84.07%
Libplanet.RocksDBStore 94.68%
Libplanet.RocksDBStore.Tests 77.46%
Libplanet.Stun.Tests/Stun 99.56%
Libplanet.Stun/Stun 78.87%
Libplanet.Tests 89.71%
Libplanet.Analyzers/ActionAnalyzer.cs 82.58%
Project Totals (343 files) 88.34%
1
coverage:
2
  range: 70..95
3
  status:
4
    project:
5
      default:
6
        target: auto
7
        threshold: "1"
8
        base: auto
9

10
comment:
11
  require_changes: true
12
  layout: "diff, files"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading