registry-js
registry-js copied to clipboard
support writing tests in C++ to test internals better
From #27
Need to add a test for dodgy non-null-terminated data, but I'm not sure the best way to actually get this into the registry in the first place, since REG.EXE is going to do it correctly. Can we add adjunct C++ programs to the test code somehow?
@Porges what your preferred C++ test framework for this sort of thing?
Nearly got something going but it crashes when I try to link it against the node functions and I don't know why yet 😁
Blergh; wasn't setting up the V8 platform abstraction before calling Initialize (why not use a normal class, eh?)
But CreateDefaultPlatform isn't exported from Node, so this can't link... https://github.com/Porges/registry-js/commit/6caf63fa417dd155a0c0452085507e371cca88d6 Will have to figure something out later.
I'm not entirely sure about this one. I'll do some digging and see if I can't spot a way out.