parsetest

package
v0.0.0-...-17f8324 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: BSD-3-Clause, MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSchemaFile

func ParseSchemaFile(fname string) (*Tree, error)

Parse a yang schema file

func VerifyExpectedArgument

func VerifyExpectedArgument(t *testing.T, fname string, ntype NodeType, exp string)

Currently only supports arguments of top level nodes.

func VerifyParseErrorIsSeen

func VerifyParseErrorIsSeen(t *testing.T, fname, expectedError string)

Parse a yang file, which is expected to contain a parsing error Check that the reported error is the expected error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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