Why Loops EndCppCon, October 2023 Why Loops EndNo. 1The heat death of the universe👿 👿 😈 Will this loop ever end? 🙂 Yes! Execution increases the entropy of the universe, turning free energy into useless thermal specific? 😈 Will this loop end for some non-cosmological reason?🙂 That is very specific! But you’ll have to explain the part about the function interfaces. 😈 Will this loop end for some reason that: the bottom part of the interface.😈 Let’s call that sort of reason a local reason. Does the loop end for some local reason? 🙂 OK, now there's a local reason. 😈 Now can you write it in a way my robot0 码力 | 134 页 | 1.30 MB | 6 月前3
CMake Configuration for Asio Basic Library and Testscppcon_add_library(basic LIBRARIES Asio::asio) add_subdirectory(tests)0 码力 | 1 页 | 71.00 B | 6 月前3
Quickly Testing Qt Desktop Applications With Approval Testswith Approval Tests Clare Macrae (She/her) clare@claremacrae.co.uk 16 September 2020 CppCon (Online)2 Audience: Developers testing Desktop GUIs, including Qt-based ones Approval Tests: claremacrae tations.html3 Contents •Introduction •Qt –Setting Up Testing –Error-prone Things –Approval Tests •Extras –Tools –Summary4 About Me • Scientific C++ and Qt developer since 1999 • My mission: mission: Sustainable and efficient testing and refactoring of legacy code – Co-author of “Approval Tests for C++” • Consulting & training via “Clare Macrae Consulting Ltd” – claremacrae.co.uk • All links0 码力 | 77 页 | 6.96 MB | 6 月前3
Behavior-driven Tests for Microservices-based Algo Trading SystemBehavior-driven Tests for Microservices-based Algo Trading System Summary : Introduction : This poster will introduce a test framework we use at Bloomberg to enable behavior-based tests in natural language often non-trivial to automate the system-level tests with external dependencies. Controlling external dependencies are especially important for algo tests since certain algo behaviors require hard-to-produce a test framework is proposed to address these pain points: ● End-to-end : The test framework validates the end (client) to end (broker/exchange) algo behavior. ● Controlled external dependencies0 码力 | 1 页 | 65.24 KB | 6 月前3
Leveraging a Functional Approach for More Testable and Maintainable ROS 2 Codethat uses ROS 2 – creating code that is easy to understand, test, maintain, and extend ● At the end of a services project, code is handed over to the clientWhy give this talk? ● Engineers at PickNik that uses ROS 2 – creating code that is easy to understand, test, maintain, and extend ● At the end of a services project, code is handed over to the client ● How can the client expect proper operation ● At the end of a services project, code is handed over to the client ● How can the client expect proper operation of the software once they start developing on top of it? Answer: Tests and documentation0 码力 | 200 页 | 1.77 MB | 6 月前3
Changing Legacy Code: With ConfidenceRuth (he/him) brian.ruth@garmin.comPart 0: Legacy Code• It works* • It may not have tests, but has been tested • Documents all the decisions and problems encountered in its lifetime • It every feature Write Automated tests and run them continuously Test the change you just made Testing StrategiesTest Everything on every feature Write Automated tests and run them continuously Test every feature Write Automated tests and run them continuously Test the change you just made Testing StrategiesTest Everything on every feature Write Automated tests and run them continuously Test0 码力 | 114 页 | 982.54 KB | 6 月前3
Compile-Time Validationstd::chrono; auto start = high_resolution_clock::now(); /*...*/ auto end = high_resolution_clock::now(); validate_performance(start, end); } Detecting performance issues at runtimeStatic Performance Validation Static detection of performance issuesSoftware Development Design Write Code Build Tests Review More Tests Production Detecting errors early in the development pipeline reduces costs, saves time report_error(){ static_assert(always_false, error.message()); }Compile-time Unit Tests Unit tests are automated tests written to validate that individual components of a program function as expected 0 码力 | 137 页 | 1.70 MB | 6 月前3
Back to Basics: Classic 9STL(Bytes) From a FILE Stream 31 Action Operation Read element and advance b = fgetc(p) Compare for end-of-file equality b == EOF, feof(p) Make a copy (assign) q = p O(1) - constant time • Consider a the first element included in the sequence • last refers to the non-dereferenceable, "one-past-the-end" (PTE) position excluded from the sequence 35 e0 e1 … e2 eN-1 first lastCppCon 2021 – Back to Basics: irrelevant 36 iterator f = get_position_of_first_element_in_sequence(); iterator l = get_one_past_end_position_in_sequence(); //- Works for all iterator types except OutputIterator // for (; f != l;0 码力 | 75 页 | 603.36 KB | 6 月前3
Back to Basics TestingConformance Context Driven Conversion Decision Coverage Dependency Destructive Domain Dynamic End-to-end Endurance Equivalence Partitioning Error-Handling Exploratory Fault injection Formal verification System UnitWhat is a test? 17 Integration System Unit Tests Tests TestsWhat is a test? 18 Integration System Unit Tests Tests Tests The testing pyramidWhat is a Test? 19 UnitWhat is the network ‣ It touches the file system ‣ It can't run at the same time as any of your other unit tests ‣ You have to do special things to your environment (such as editing config files) to run it Michael0 码力 | 79 页 | 25.86 MB | 6 月前3
Conan 1.26 Documentationenable_apacheconnector: False enable_cppparser: False enable_crypto: True enable_data: True ... The @ symbol at the end of the package name is important to search for a specific package. If you don’t add the @, Conan will openjpeg/2.3.1 openjpeg/2.3.1@bincrafters/stable openssl/1.0.2s ... As you can see, some of the libraries end with a @ symbol followed by two strings separated by a slash. These fields are the user and channel package recipe to declare “Visual Studio” as a default compiler because that is something defined by the end consumer, and unlikely to make sense if they are working in Linux. On the other hand, options are0 码力 | 669 页 | 5.51 MB | 1 年前3
共 312 条
- 1
- 2
- 3
- 4
- 5
- 6
- 32
相关搜索词
WhyLoopsEndCMakeConfigurationforAsioBasicLibraryandTestsQuicklyTestingQtDesktopApplicationsWithApprovalBehaviordrivenMicroservicesbasedAlgoTradingSystemLeveragingFunctionalApproachMoreTestableMaintainableROSCodeChangingLegacyConfidenceCompileTimeValidationBacktoBasicsClassic9STLConan1.26Documentation













