gotest.tools: gotest.tools/internal/source Index | Files

package source

import "gotest.tools/internal/source"

Index

Package Files

defers.go source.go

func CallExprArgs Uses

func CallExprArgs(stackIndex int) ([]ast.Expr, error)

CallExprArgs returns the ast.Expr slice for the args of an ast.CallExpr at the index in the call stack.

func FormatNode Uses

func FormatNode(node ast.Node) (string, error)

FormatNode using go/format.Node and return the result as a string

func FormattedCallExprArg Uses

func FormattedCallExprArg(stackIndex int, argPos int) (string, error)

FormattedCallExprArg returns the argument from an ast.CallExpr at the index in the call stack. The argument is formatted using FormatNode.

Package source imports 11 packages (graph) and is imported by 3 packages. Updated 2018-08-21. Refresh now. Tools for package owners.