书栈网 · BookStack 本次搜索耗时 0.029 秒,为您找到 15645 个相关结果.
  • go test

    1391 2018-09-02 《GO 命令教程》
    go test go test go test 命令用于对Go语言编写的程序进行测试。这种测试是以代码包为单位的。当然,这还需要测试源码文件的帮助。关于怎样编写并写好Go程序测试代码,我们会在本章的第二节加以详述。在这里,我们只讨论怎样使用命令启动测试。 go test 命令会自动测试每一个指定的代码包。当然,前提是指定的代码包中存在测试源码文件。...
  • Learn Go with tests

    通过测试学习 Go 语言 背景 无效的方法 读书 解决一些问题 有效的方法 对我有效的方法 适用人群 准备工作 反馈 通过测试学习 Go 语言 图片由 Denise 创作 通过 Go 语言学习测试驱动开发 Read original English version online 通过编写测试学习 Go 语言 为测试驱...
  • Learn Go with Tests

    Learn Go with Tests Why Table of contents Go fundamentals Build an application Questions and answers Contributing Background What didn’t work Read the book Solve some proble...
  • Learn Go with Tests

    Learn Go with Tests Formats Translations Support me Why Table of contents Go fundamentals Build an application Testing fundamentals Questions and answers Meta / Discussion ...
  • 7.4 go test参数

    1255 2019-08-10 《GO专家编程》
    go test非常容易上手,但并不代表其功能单一,它提供了丰富的参数接口以便满足各种测试场景。 本节,我们主要介绍一些常用的参数,通过前面实现原理的学习和本节的示例,希望读者可以准确掌握其用法,以便在工作中提供便利。
  • 7.3.7 go test工作机制

    1419 2019-08-10 《GO专家编程》
    前言 runTest() 两种运行模式 本地目录模式 包列表模式 缓存机制 测试结果缓存 使用缓存结果 禁用缓存 前言 前面的章节我们分析了每种测试的数据结构及其实现原理,本节我们看一下go test的执行机制。 Go 有多个命令行工具,go test只是其中一个。go test命令的函数入口在src\cmd\go\internal...
  • 第七章:go test

    2543 2019-08-10 《GO专家编程》
    Go语言提供了go test 命令行工具,使用该工具可以很方便的进行测试。 不仅Go语言源码中大量使用go test,在各种开源框架中的应用也极为普遍。 目前go test支持的测试类型有: 单元测试 性能测试 示例测试 本章,我们先快速掌握这几种测试的基本用法,然后我们跟据源码来学习这些测试的实现机制。
  • 9.8 自定义包的目录结构、go install 和 go test

    2428 2018-02-08 《Go入门指南》
    9.8 自定义包的目录结构、go install 和 go test 9.8.1 自定义包的目录结构 9.8.2 本地安装包 9.8.3 依赖系统的代码 链接 9.8 自定义包的目录结构、go install 和 go test 为了示范,我们创建了一个名为 uc 的简单包,它含有一个 UpperCase 函数将字符串的所有字母转换为大写。...
  • Maths

    Mathematics The Problem An Acceptance Test Write the test first Try to run the test Write the minimal amount of code for the test to run and check the failing test output Write...
  • Concurrency

    Concurrency Write a test Write enough code to make it pass A quick aside into a parallel(ism) universe… … and we’re back. Channels Wrapping up Make it fast Concurrency Yo...