asttest

package
v7.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package asttest 提供了一个合法的 ast.APIDoc 对象

Index

Constants

View Source
const Filename = "index.xml"

Filename 文档的文件名

Variables

This section is empty.

Functions

func Dir

func Dir(a *assert.Assertion) string

Dir 返回测试文件所在的目录

func Get

func Get() *ast.APIDoc

Get 返回 doc.APIDoc 对象

同时当前目录下的 index.xml 文件与此返回对象内容是相同的。

func Path

func Path(a *assert.Assertion) string

Path 返回测试文件的绝对路径

NOTE: 该文件与 Get() 对象的内容是相同的。

func URI

func URI(a *assert.Assertion) core.URI

URI 返回测试文件基于 URI 的表示方式

func XML

func XML(a *assert.Assertion) []byte

XML 获取 Get 返回对象的 XML 编码

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL