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

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
主站蜘蛛池模板: 巴彦淖尔市| 大宁县| 运城市| 关岭| 宁国市| 小金县| 墨玉县| 康保县| 阜南县| 上思县| 桑植县| 大方县| 板桥市| 安福县| 大邑县| 新竹县| 柳州市| 浪卡子县| 石阡县| 山丹县| 丰宁| 稷山县| 镇坪县| 从江县| 鄄城县| 唐河县| 应用必备| 梅河口市| 阿克陶县| 连平县| 桦南县| 慈利县| 莱芜市| 通化市| 托克逊县| 江源县| 边坝县| 柳州市| 闻喜县| 威信县| 南城县|