摘要: go_test 一、Test 1. 使用介绍 测试函数以Test开头,只能有一个t *testing.T参数 输出:通过*testing.T 参数的断言函数检查。 执行:运行go test时自动运行 2. 用例 package main import "testing" func Hello() s 阅读全文
posted @ 2024-07-20 16:19 徐行code 阅读(72) 评论(0) 推荐(0)