我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

检查软件包及其测试,而无需创建二进制文件或运行测试

Using Go, how can I check that a package and its tests will build successfully, without running the tests or creating a binary that outlives the check?

Use the command:

go test -run @

This command compiles the package and tests and starts the test application, but no tests run because no function name matches the regular expression "@".

近期文章

  • 什么是“值”数组?
  • gccgo在Ubuntu 9.10 karmic中链接错误?
  • 为什么此for循环永远不会退出?
  • Go中的iOS Game Center身份验证
  • 去测试:仅运行包含构建标记的测试?
  • 如何在Golang中将模板输出写入文件?
  • 如何使用golang连接到TimesTen数据库?
  • 在运行时获取项目根路径以读取配置文件
  • 从存储过程检索结果的惯用方式是什么?
  • 使用gocraft Middleware检查HTTP请求的主体
  • 一段时间内实时最常见/重复的元素
  • 如何使用Go标准库替换流中的字节?
  • 去构建找不到包
  • golang:ioutil.ReadAll()的网络响应为空,对等体重置连接
  • 如何在go中释放内存?
  • 恐慌中的恐慌
  • 如何在Revel Golang中获取POST参数
  • 在golang中无法捕获upstart发送的SIGTERM
  • 指针接收器与值接收器的混淆[重复]
  • 如何使Go Coverage HTML具有浅色背景?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华