Documentation
¶
Index ¶
- func AbaFilePath(name string) string
- func AssetSamplePaths(t TB) []string
- func MiscSamplePaths(t TB) []string
- func PartsSamplePaths(t TB) []string
- func PayloadSamplePaths(t TB) []string
- func RawObjectPath(t TB, abaName string, assetName string, classID int32, outputName string) (string, string)
- func RawObjectSamplePaths(t TB) []string
- func TextAssetBytes(t TB, abaName string, assetName string) []byte
- func TextAssetPath(t TB, abaName string, assetName string) string
- func TextAssetPathsBySuffix(t TB, abaName string, suffix string) []string
- func TexturePNGPath(t TB, abaName string, textureName string, outputName string) string
- type TB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbaFilePath ¶
AbaFilePath 返回 testdata/KCES 下样本 ABA 文件的路径 AbaFilePath returns the path to a sample ABA file under testdata/KCES
func AssetSamplePaths ¶
AssetSamplePaths 返回 KCES 可编辑资产样本路径,包括 NEI、PSK、PNG 和原始 Unity 对象 AssetSamplePaths returns KCES editable asset sample paths including NEI, PSK, PNG, and raw Unity objects
func MiscSamplePaths ¶
MiscSamplePaths 从已知数据 ABA 中提取 hitcheck、undressdat 和 undresspdat 样本 MiscSamplePaths extracts hitcheck, undressdat, and undresspdat samples from known data ABAs
func PartsSamplePaths ¶
PartsSamplePaths 从已知部件 ABA 中提取 menuassets、materialassets、model 和 pmatassets 样本 menuassets 样本覆盖游戏中出现过的多种 Menu indexed-array 宽度,包括 21、22、26、30、31 和 32 PartsSamplePaths extracts menuassets, materialassets, model, and pmatassets samples from known parts ABAs The menuassets samples cover several Menu indexed-array widths seen in the game, including 21, 22, 26, 30, 31, and 32
func PayloadSamplePaths ¶
PayloadSamplePaths 从已知数据 ABA 中提取常用 KCES payload 样本 default_acckami_col.dbcol 覆盖 Key(13) 至 Key(15) 仍留有旧写入器残留值的 NativeMaidPropColliderStatus 布局 PayloadSamplePaths extracts common KCES payload samples from known data ABAs default_acckami_col.dbcol covers the NativeMaidPropColliderStatus layout that still holds earlier-writer residue at Key(13) through Key(15)
func RawObjectPath ¶
func RawObjectPath(t TB, abaName string, assetName string, classID int32, outputName string) (string, string)
RawObjectPath 从 abaName 中提取原始 Unity 对象并写入 .bytes 文件及其 .meta.json 旁车 RawObjectPath extracts a raw Unity object from abaName and writes both the .bytes file and its .meta.json sidecar
func RawObjectSamplePaths ¶
RawObjectSamplePaths 返回服务层原始 Unity 对象测试使用的 .bytes 样本路径 RawObjectSamplePaths returns .bytes sample paths used by the service-layer raw Unity object tests
func TextAssetBytes ¶
TextAssetBytes 从 abaName 中提取名为 assetName 的 TextAsset TextAssetBytes extracts a TextAsset named assetName from abaName
func TextAssetPath ¶
TextAssetPath 将 TextAsset 样本写入临时文件并返回路径 TextAssetPath writes a TextAsset sample to a temporary file and returns its path
func TextAssetPathsBySuffix ¶
TextAssetPathsBySuffix 从 abaName 中提取所有具有 suffix 后缀的 TextAsset TextAssetPathsBySuffix extracts every TextAsset with suffix from abaName
Types ¶
type TB ¶
type TB interface {
// Helper 将当前调用函数标记为测试辅助函数
// Helper marks the calling test function as a helper
Helper()
// TempDir 返回当前测试使用的临时目录
// TempDir returns the temporary directory used by the current test
TempDir() string
// Fatalf 报告致命错误并停止当前测试
// Fatalf reports a fatal error and stops the current test
Fatalf(format string, args ...any)
// Skipf 跳过当前测试并给出原因
// Skipf skips the current test with a reason
Skipf(format string, args ...any)
}
TB 表示夹具辅助函数使用的 testing.T 子集 / TB is the subset of testing.T used by fixture helpers