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

Writing tests and benchmarks

When we start developing, tests take a backseat more often than not. There are several reasons why this might be necessary at the time, but the inability to set up a testing framework and surroundings is not one of them. Unlike many languages, Rust supports testing right out of the box. This recipe covers how to use these tools.

Although we mostly talk about unit testing here, that is, tests on a function/struct level, the tools remain the same for integration tests. 

主站蜘蛛池模板: 毕节市| 安西县| 华容县| 宁武县| 巴青县| 平果县| 华亭县| 集安市| 高尔夫| 锦州市| 乐清市| 南丰县| 邹平县| 门源| 磐安县| 饶河县| 海门市| 龙井市| 漳平市| 福州市| 通辽市| 武川县| 南涧| 桐梓县| 启东市| 吴堡县| 淄博市| 科技| 许昌县| 石柱| 什邡市| 佳木斯市| 南开区| 中方县| 台中县| 福建省| 永福县| 温宿县| 义乌市| 恩平市| 卓尼县|