官术网_书友最值得收藏!

Tests, Documentation, and Benchmarks

In this chapter, we will continue with Cargo and learn how to write tests, how to document our code, and how to measure the performance of our code with benchmark tests. We'll then put those skills to use and build a simple crate that simulates logic gates, giving you an end- to-end experience of writing unit and integration tests, as well as documentation tests.

In this chapter, we'll cover the following topics:

  • Motivation on testing
  • Organizing tests and testing primitives
  • Unit tests and integration tests
  • Documentation tests
  • Benchmark tests
  • Continuous integration with Travis CI
主站蜘蛛池模板: 南城县| 察哈| 张家界市| 昌宁县| 平遥县| 乌拉特前旗| 江津市| 博湖县| 榆社县| 庆阳市| 刚察县| 兴宁市| 金川县| 贺州市| 西峡县| 依兰县| 故城县| 云林县| 宣恩县| 牡丹江市| 大关县| 象山县| 吴忠市| 炎陵县| 潼关县| 长沙市| 中牟县| 霍林郭勒市| 滦平县| 贵南县| 辽阳市| 普格县| 固阳县| 渝中区| 柏乡县| 和龙市| 遂溪县| 新营市| 肇州县| 成都市| 曲麻莱县|