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

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
主站蜘蛛池模板: 微博| 磐安县| 景德镇市| 西吉县| 大方县| 吴桥县| 德格县| 石狮市| 兰州市| 兴宁市| 隆林| 平阳县| 文昌市| 赤水市| 赫章县| 宜阳县| 益阳市| 上犹县| 郓城县| 绥棱县| 五华县| 六安市| 台州市| 拜泉县| 锡林浩特市| 衢州市| 托里县| 东丽区| 甘肃省| 华安县| 金平| 海南省| 敖汉旗| 郴州市| 墨玉县| 上思县| 金塔县| 鱼台县| 肃南| 微山县| 信阳市|