doctest

package
v6.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package doctest 提供了一个合法的 doc.Doc 对象

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() *doc.Doc

Get 返回 doc.Doc 对象

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

func Path

func Path(a *assert.Assertion) string

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

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

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