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

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
主站蜘蛛池模板: 隆昌县| 陕西省| 三明市| 正镶白旗| 吉木萨尔县| 麻阳| 岳阳市| 安达市| 梁河县| 洛阳市| 九龙坡区| 商丘市| 安塞县| 吉安市| 桂林市| 云和县| 罗甸县| 海兴县| 丰县| 全州县| 名山县| 汨罗市| 六枝特区| 华宁县| 西充县| 宁城县| 铜山县| 武邑县| 牡丹江市| 广昌县| 利津县| 清远市| 东方市| 桃江县| 江山市| 同德县| 东平县| 大化| 始兴县| 昌图县| 台前县|