与 “Tests” 相关
testing.assertEmpty() 函数
testing.assertEmpty() 测试输入流是否为空。如果非空,该函数将返回错误。
testing.assertEquals() 函数
testing.assertEquals() 测试两个表流是否相同。
testing.assertEqualValues() 函数
testing.assertEqualValues() 测试两个值是否相等。
testing.diff() 函数
testing.diff() 生成两个流之间的差异。
testing.shouldError() 函数
testing.shouldError() 调用一个函数,该函数捕获任何错误并检查错误是否与预期值匹配。
types.isNumeric() 函数
types.isNumeric() 测试一个值是否为数字类型(int、uint 或 float)。
types.isType() 函数
types.isType() 测试一个值是否为指定的类型。
dynamic.isType() 函数
dynamic.isType() 测试动态类型是否持有指定类型的值。
testing.assertMatches() 函数
testing.assertMatches() 测试字符串是否与给定的正则表达式匹配。
testing.shouldErrorWithCode() 函数
testing.shouldErrorWithCode() 调用一个函数,该函数捕获任何错误并检查错误是否与预期值匹配。