Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 470 Bytes

test-explorer.md

File metadata and controls

10 lines (8 loc) · 470 Bytes

Test explorer implementation (src/goTest)

Mapping tests

TestItems themselves cannot be used with Maps. For non-primitive (object) keys, Map uses strict equality. Two objects are only strictly equal to each other if they are the exact same object. Because of this, TestItems cannot be used as map keys, as the extension host may provide different objects for the same test. Therefore, if we want to use TestItems as a map key, we must use their ID instead.