Back to Basics Unit Testing"Emotional Code" https://youtu.be/uloVXmSHiSo Checking what doesn't need to be checked if (pPolicy){ delete pPolicy; } auto int_vals = std::vector(); assert (int_vals.empty()); 1 2 3 4 "I can't be Tests" https://youtu.be/FjwayiHNI1w 2021: Me, "The Unit Tests Strike Back" https://youtu.be/N2YJ4D7O7Oc 2022: Me, "It's a Bug Hunt" https://youtu.be/P8qYIerTYA0 2015: Titus Winters & Hyrum Wright, "All 0 码力 | 109 页 | 4.13 MB | 6 月前3
Conan 1.52 Documentationcompiler.runtime field will change based on the build_type value so in that case you will also want to delete the compiler runtime field like so: def package_id(self): if self.settings.os in ["Windows","WindowsStore"] _check_conan check_write_conan = _check_conan check_delete_conan = _check_conan check_read_package = _check_package check_write_package = _check_package check_delete_package = _check_package The module has to recipe. – check_write_conan() is used to decide whether to allow write access to a recipe. – check_delete_conan() is used to decide whether to allow a recipe’s deletion. – check_read_package() is used to0 码力 | 943 页 | 7.62 MB | 1 年前3
Conan 1.53 Documentationcompiler.runtime field will change based on the build_type value so in that case you will also want to delete the compiler runtime field like so: def package_id(self): if self.settings.os in ["Windows","WindowsStore"] _check_conan check_write_conan = _check_conan check_delete_conan = _check_conan check_read_package = _check_package check_write_package = _check_package check_delete_package = _check_package The module has to recipe. – check_write_conan() is used to decide whether to allow write access to a recipe. – check_delete_conan() is used to decide whether to allow a recipe’s deletion. – check_read_package() is used to0 码力 | 953 页 | 7.64 MB | 1 年前3
Conan 1.46 Documentationcompiler.runtime field will change based on the build_type value so in that case you will also want to delete the compiler runtime field like so: def package_id(self): if self.settings.os in ["Windows","WindowsStore"] the generated Conan traces file and a parameter --output to indicate the output file. You can also, delete the traces.log` file` otherwise while the CO- NAN_TRACE_FILE is present, any Conan command will keep config home $> /home/user/.conan • Create all missing configuration files: $ conan config init • Delete the existing configuration files and create all configuration files: $ conan config init --force0 码力 | 893 页 | 7.46 MB | 1 年前3
Conan 1.47 Documentationcompiler.runtime field will change based on the build_type value so in that case you will also want to delete the compiler runtime field like so: def package_id(self): if self.settings.os in ["Windows","WindowsStore"] the generated Conan traces file and a parameter --output to indicate the output file. You can also, delete the traces.log` file` otherwise while the CO- NAN_TRACE_FILE is present, any Conan command will keep config home $> /home/user/.conan • Create all missing configuration files: $ conan config init • Delete the existing configuration files and create all configuration files: $ conan config init --force0 码力 | 907 页 | 7.50 MB | 1 年前3
Conan 1.48 Documentationcompiler.runtime field will change based on the build_type value so in that case you will also want to delete the compiler runtime field like so: def package_id(self): if self.settings.os in ["Windows","WindowsStore"] the generated Conan traces file and a parameter --output to indicate the output file. You can also, delete the traces.log` file` otherwise while the CO- NAN_TRACE_FILE is present, any Conan command will keep config home $> /home/user/.conan • Create all missing configuration files: $ conan config init • Delete the existing configuration files and create all configuration files: $ conan config init --force0 码力 | 913 页 | 7.52 MB | 1 年前3
Conan 1.49 Documentationcompiler.runtime field will change based on the build_type value so in that case you will also want to delete the compiler runtime field like so: def package_id(self): if self.settings.os in ["Windows","WindowsStore"] the generated Conan traces file and a parameter --output to indicate the output file. You can also, delete the traces.log` file` otherwise while the CO- NAN_TRACE_FILE is present, any Conan command will keep config home $> /home/user/.conan • Create all missing configuration files: $ conan config init • Delete the existing configuration files and create all configuration files: $ conan config init --force0 码力 | 915 页 | 7.53 MB | 1 年前3
Conan 1.50 Documentationcompiler.runtime field will change based on the build_type value so in that case you will also want to delete the compiler runtime field like so: def package_id(self): if self.settings.os in ["Windows","WindowsStore"] the generated Conan traces file and a parameter --output to indicate the output file. You can also, delete the traces.log` file` otherwise while the CO- NAN_TRACE_FILE is present, any Conan command will keep config home $> /home/user/.conan • Create all missing configuration files: $ conan config init • Delete the existing configuration files and create all configuration files: $ conan config init --force0 码力 | 923 页 | 7.55 MB | 1 年前3
Conan 1.51 Documentationcompiler.runtime field will change based on the build_type value so in that case you will also want to delete the compiler runtime field like so: def package_id(self): if self.settings.os in ["Windows","WindowsStore"] the generated Conan traces file and a parameter --output to indicate the output file. You can also, delete the traces.log` file` otherwise while the CO- NAN_TRACE_FILE is present, any Conan command will keep config home $> /home/user/.conan • Create all missing configuration files: $ conan config init • Delete the existing configuration files and create all configuration files: $ conan config init --force0 码力 | 933 页 | 7.58 MB | 1 年前3
Back To Basics Lifetime Management^~~~~~The compiler will generate Special Member Functions (SMFs) for you 1. Defining some SMFs may delete or disable some others 2. Special Member Functions T(T const&) T() T(T&&) operator=(T const&) Gadget* gadget; Widget() : age(42), gadget(new Gadget()) {} ~Widget() { delete gadget; } }; std::cout << widget.name << "\n"; std::cout << widget.age << "\n"; std::cout << Gadget* gadget; Widget() : age(42), gadget(new Gadget()) {} ~Widget() { delete gadget; } }; std::cout << widget.name << "\n"; std::cout << widget.age << "\n"; std::cout <<0 码力 | 66 页 | 8.43 MB | 6 月前3
共 163 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17













