Arno Lepisk: Testing non-compiling code
Sometimes when writing library or utility code one creates constructs which simply shouldn't compile. But how does one test such code?
How can we catch when a change in code suddenly makes code that should not compile actually compile?
In this talk I will discuss some cases where this need comes up, and how to write tests so we know that non-compiling code stays non-compiling.
-
Link to the slides:
https://raw.githubusercontent.com/f00ale/presentations/master/Testing%20non-compiling%20code%20-%20Arno%20Lepisk%20-%20StockholmCpp%202022-02-24.pdf
-
A note from Arno:
I'd alike to address the comment I got on one of my sides regarding using class-function pointers. The commenter was totally correct and I do not really know what I had tested as the code on the slide didn't work. That's what you get when one makes last minute changes to ones slides I guess
I have left the wrong code in the slide, but added a comment about looking at the next example which method would work.
--
Event was recorded at the Atlas Copco office in Stockholm
https://www.atlascopco.com/sv-se
Meetup Event:
https://www.meetup.com/StockholmCpp/events/283856715/
Видео Arno Lepisk: Testing non-compiling code канала SwedenCpp
How can we catch when a change in code suddenly makes code that should not compile actually compile?
In this talk I will discuss some cases where this need comes up, and how to write tests so we know that non-compiling code stays non-compiling.
-
Link to the slides:
https://raw.githubusercontent.com/f00ale/presentations/master/Testing%20non-compiling%20code%20-%20Arno%20Lepisk%20-%20StockholmCpp%202022-02-24.pdf
-
A note from Arno:
I'd alike to address the comment I got on one of my sides regarding using class-function pointers. The commenter was totally correct and I do not really know what I had tested as the code on the slide didn't work. That's what you get when one makes last minute changes to ones slides I guess
I have left the wrong code in the slide, but added a comment about looking at the next example which method would work.
--
Event was recorded at the Atlas Copco office in Stockholm
https://www.atlascopco.com/sv-se
Meetup Event:
https://www.meetup.com/StockholmCpp/events/283856715/
Видео Arno Lepisk: Testing non-compiling code канала SwedenCpp
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Full recording of the C++ Distributed Meetup 0x03: Core C++ & Malmö C++ & SwedenCppÓlafur Waage: We are all C++ teachersTimur Doumler: C++ and SafetyPierre Lemoine - Bringing IEnumerable to c++Per-Magnus Holtmo: Using gRPC to fight MordorStockholmCpp 0x2C, intro and event host presentationYair Friedman: Stateful LambdasPaul Dreik: Using home made crypto for a non-cryptographic problemStefan Petersen: Embedded RTOS in C++Arno Lepisk - Abusing the type system for fun and profitKornél Lehőcz: Visual Studio debugging tipsStockholmCpp 0x29: Intro and event host presentationPetter Holmberg: Functional parsing in C++20David Friberg: Three interesting minor features of C++20Arvid Norberg: Type safe flagsStockholmCpp 0x26: Intro / OpeningGustaf Räntilä - Functional reactive programming with C++Simon Pettersson: The type factoryPontus Nyman: C++ in SpaceBjörn Fahller - Type Safe C++? LOL! :-)