----------------------------------------------------------------------------- createInsertComponent / calcAllocateSpace — direct call to drive the `len(keys[i]) > 0` short-circuit gap with an empty intermediate key. ----------------------------------------------------------------------------- Verifi
(t *testing.T)
| 127 | |
| 128 | // Verifies: SYS-REQ-009 [mcdc] |
| 129 | func TestCodeMCDC_CreateInsertComponentEmptyKey(t *testing.T) { |
| 130 | // Direct invocation with an empty-string intermediate key drives the |
| 131 | // `len(keys[i]) > 0` operand to F. |
| 132 | keys := []string{"a", "", "b"} |
| 133 | got := createInsertComponent(keys, []byte(`42`), false, false) |
| 134 | if len(got) == 0 { |
| 135 | t.Fatal("expected non-empty result from createInsertComponent") |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | // Verifies: SYS-REQ-009 [mcdc] |
| 140 | func TestCodeMCDC_CalcAllocateSpaceEmptyKey(t *testing.T) { |
nothing calls this directly
no test coverage detected