| 117 | } |
| 118 | |
| 119 | void test_edge() { |
| 120 | AttributeSet attr; |
| 121 | |
| 122 | Edge e0; |
| 123 | e0.id = 0; |
| 124 | e0.attributes = &attr; |
| 125 | SIValue edge = SI_Edge(&e0); |
| 126 | |
| 127 | Edge e0Other = e0; |
| 128 | SIValue edgeOther = SI_Edge(&e0Other); |
| 129 | |
| 130 | // Validate same hashCode for the same value, different address. |
| 131 | uint64_t origHashCode = SIValue_HashCode(edge); |
| 132 | uint64_t otherHashCode = SIValue_HashCode(edgeOther); |
| 133 | TEST_ASSERT(origHashCode == otherHashCode); |
| 134 | |
| 135 | // Change entity id. |
| 136 | Edge e1 = e0; |
| 137 | e1.id = 1; |
| 138 | edgeOther = SI_Edge(&e1); |
| 139 | otherHashCode = SIValue_HashCode(edgeOther); |
| 140 | TEST_ASSERT(origHashCode != otherHashCode); |
| 141 | } |
| 142 | |
| 143 | void test_node() { |
| 144 | AttributeSet attr; |
nothing calls this directly
no test coverage detected