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

检查测试编译,而无需运行它们或创建二进制文件

How with Go can I check that my tests compile without creating any binaries or executing the tests?

The test equivalent of go build ./..., which does this but ignores tests.

I use any non-matching regex for the run flag, like

go test -run NONE ./...

近期文章

  • 如果发生错误并且我的golang应用程序不处理该怎么办?
  • 使用%v在golang中打印持续时间时,`B5s'是什么意思
  • 为什么utf 8.Valid String函数无法检测到无效的unicode字符?
  • 在Go中解析数组发布表格数据
  • 在Goe GAE上显示html / template产生的换行符
  • 如何创建不同类型的struct数组的数组?
  • 在Golang应用程序中,如何将版本嵌入除main之外的其他软件包中?
  • 如何在mgo中使用$ pushAll
  • 如何知道我们可以在go包中使用的功能?
  • 我需要在迭代时为闭包上下文分配一个变量,以保持正确的值
  • 强制转换界面{}以json编码进行结构化
  • spring security 中怎么拦截AccessDeniedException
  • Request和ResponseWriter将被覆盖
  • 如何将Go应用程序部署到Bluemix?
  • 我如何从一个字节中获取比特的子集?
  • 为什么这段代码会导致切片超出范围?
  • 函数调用中带有参数的传递类型
  • 位移不应该导致零
  • 为什么在反转字符串时这些图表不显示?
  • 在Golang中从[] byte和字符串转换的技术问题

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华