Compile-Time Validationcan lead to death or serious injury to people, loss or severe damage to property, or severe environmental harm." - ISO/IEC 23643:2020Software Safety - Crowdstrike Faulty updated crashed roughly 8.5 and an apply function to change the reference typeContext A tuple of context variables. An action is applied to all variables. templatestruct context { tuple data; context(tuple variables in a context and passing it to the next function after every action.Goals - Properties Compute 0 码力 | 137 页 | 1.70 MB | 6 月前3
Back to Basics Unit Testingthe same answer you do Part 1: Testing Repeatable 24Hermeticity Hermeticity: Sealed off from environmental effects Hermetic: Airtight, impervious to external influence. (Merriam Webster) Hermetic tests: three private, protected or public. -- Wikipedia user-defined type data structure member variables member functions access specifiers From our original definition of Unit Testing, we therefore private: 9 10 11 friend struct CupTester 12 ... 13 }; 14 The names of your member variables are referenced in your tests! White Box testing tends to create big maintainability problems struct0 码力 | 109 页 | 4.13 MB | 6 月前3
Scientific Unit Testingnoise. Interference from the environment: noisy signals Inherent in complex systems with too many variables Inherent in quantum mechanics Solutions: Isolate Subtract Detect and eliminate erroneous results test conditions Example: Client must connect to server within X seconds Measure the unwanted environmental effects Adjust tests to compensate 30Option 3: Detect and Respond Options: If the environment0 码力 | 45 页 | 1.91 MB | 6 月前3
Conan 1.26 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 10.4 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 10.5 Virtual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537 16.9 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551 16.10 Hooks cmake generator is specified. This generator creates a conanbuildinfo.cmake file that defines CMake variables including paths and library names that can be used in our build. Read more about Generators. 50 码力 | 669 页 | 5.51 MB | 1 年前3
Conan 1.16 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 9.5 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 9.6 Virtual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441 14.9 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454 14.10 Hooks cmake generator is specified. This generator creates a conanbuildinfo.cmake file that defines CMake variables including paths and library names that can be used in our build. Read more about Generators. 50 码力 | 545 页 | 4.34 MB | 1 年前3
Conan 1.56 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 12.4 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 12.5 Virtual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 759 18.9 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783 iii 18 get(self, **self.conan_data["sources"][self.version], strip_root=True) When declaring the layout, the variables self.source_folder and self.build_folder will point to the correct folder, both in the cache or0 码力 | 963 页 | 7.67 MB | 1 年前3
Conan 1.55 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 12.4 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 12.5 Virtual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 759 18.9 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783 iii 18 get(self, **self.conan_data["sources"][self.version], strip_root=True) Declaring the layout, the variables self.source_folder, self.build_folder will point to the correct folder, both in the cache or locally0 码力 | 963 页 | 7.67 MB | 1 年前3
Conan 1.15 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 9.5 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 9.6 Virtual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438 14.9 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450 14.10 Hooks cmake generator is specified. This generator creates a conanbuildinfo.cmake file that defines CMake variables including paths and library names that can be used in our build. Read more about Generators. 50 码力 | 540 页 | 4.22 MB | 1 年前3
Conan 1.7 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 9.6 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 9.7 Virtual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361 13.9 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367 14 Videos conanbuildinfo.cmake file that defines CMake variables including paths and library names that can be used in our build. To do so, include the generated file and add these variables to our CMakeLists.txt: 12 Chapter0 码力 | 433 页 | 2.95 MB | 1 年前3
Conan 1.19 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 10.4 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 10.5 Virtual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494 15.9 Environment variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507 15.10 Hooks cmake generator is specified. This generator creates a conanbuildinfo.cmake file that defines CMake variables including paths and library names that can be used in our build. Read more about Generators. 120 码力 | 609 页 | 4.88 MB | 1 年前3
共 155 条
- 1
- 2
- 3
- 4
- 5
- 6
- 16













