package
Version:
v7.2.4
Opens a new window with list of versions in this module.
Published: Jun 2, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package asttest 提供了一个合法的 ast.APIDoc 对象
func Dir(a *assert.Assertion) string
Dir 返回测试文件所在的目录
Get 返回 doc.APIDoc 对象
同时当前目录下的 index.xml 文件与此返回对象内容是相同的。
func Path(a *assert.Assertion) string
Path 返回测试文件的绝对路径
NOTE: 该文件与 Get() 对象的内容是相同的。
func URI(a *assert.Assertion) core.URI
URI 返回测试文件基于 URI 的表示方式
func XML(a *assert.Assertion) []byte
XML 获取 Get 返回对象的 XML 编码
Source Files
¶
Click to show internal directories.
Click to hide internal directories.