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

Unit tests

In general, a unit test is a function that instantiates a small portion of an application and verifies its behavior independently from other parts of the code base. In Rust, unit tests are usually written within a module. Ideally, they should only aim to cover the module's functionality and its interfaces. 

主站蜘蛛池模板: 大邑县| 通辽市| 肇东市| 玉门市| 襄城县| 崇州市| 墨竹工卡县| 安阳市| 利津县| 吴川市| 新乡县| 喀喇沁旗| 滨州市| 磴口县| 防城港市| 胶州市| 三河市| 宁蒗| 扎赉特旗| 灵山县| 昌图县| 尼木县| 陆河县| 乌兰浩特市| 铜川市| 晋中市| 白山市| 山东省| 东乌| 仙居县| 江油市| 巴里| 永丰县| 章丘市| 九龙城区| 石林| 石嘴山市| 沙湾县| 海晏县| 西昌市| 贵定县|