Help us shape the future of Go! Take the 2026 Go Developer Survey

parsetest

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-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