testing 包
testing
包提供了用于测试 Flux 操作的函数。导入 testing
包
import "testing"
选项
option testing.load = (tables=<-) => tables
option testing.tags = []
load
load
从表流加载测试数据。
tags
tags
是将应用于测试用例的标签列表。
测试工具允许基于包含的标签进行筛选。
标签预计会在每个测试文件和测试用例中通过正常的选项语义被覆盖。
函数
包
expect 包
expect
包包含一些函数,用于标记测试用例的任何预期,以便在测试用例完成运行之前得到满足。
此页面是否对您有帮助?
感谢您的反馈!