Leonardo Pereira Santos

Results 14 comments of Leonardo Pereira Santos

While the original comment has a good intention, the post's title couldn't be worst. Why not have a title like "Don't Give in To Trolls" or something to that effect?...

@lnoor, thanks for the quick answer. > What would be helpful for you is the ability to use wildcards, like so: .. jsonschema:: schemas/*.json. That would be useful indeed. >...

Sorry for the super late reply. I'd appreciate it if anyone could rebase this as I switched jobs and no longer have access to a Windows system.

Hi there! I'm a bit confused by what exactly you mean by 'pipes'. Do you mean `subprocess.PIPES`, like in gdbcontroller? ```py # Use pipes to the standard streams self.gdb_process =...

I wrote a [pull request](https://github.com/cs01/pygdbmi/pull/55) to fix a different timing issue, but it might help you. The current `_get_responses_windows` uses a hack to make the Windows pipe non-blocking. My PR...

I don't think FFF should be used with C++, or ever support C++. FFF uses [linker seam](https://www.philosophicalhacker.com/post/build-variants-and-link-seams/) to replace the code being mocked by its mocks/fakes. C++ have other mechanisms,...

FFF is not the right tool for mocking C++ code because of [name-mangling](https://stackoverflow.com/questions/1314743/what-is-name-mangling-and-how-does-it-work). You should be using a C++ mocking framework: * [Google Mock](https://github.com/google/googletest/tree/main/googlemock) * [CppUMock](https://cpputest.github.io/mocking_manual.html) > it has no...

As a last tidbit, I use Google Test + FFF to test C code. I find that much, much better than ThrowTheSwitch/Unity. I get an excellent test harness framework while...

> the embedded C code must be imported into gtest files using extern C You mean you have to add `extern "C"` guards around C header files? ```c++ extern "C"...

I managed to dynamically create examples for a Scenario Outline by using `before_feature`. Given a feature file (`x.feature`): ``` Feature: Verify squared numbers Scenario Outline: Verify square for Then the...