tests

package
v0.0.0-...-61f7638 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: MIT Imports: 7 Imported by: 0

README

tests

-- import "github.com/metaleap/go-xsd/xsd-makepkg/tests"

A simple test function shared by the various test programs inside this directory (rss, atom, collada, svg etc.)

Usage

var (
	OnDocLoaded func(interface{})
)
func TestViaRemarshal
func TestViaRemarshal(dirPath string, makeEmptyDoc func() interface{})

Attempts to xml.Unmarshal() all files in the "infiles" sub-directory of the specified directory path into the interface{} structure returned by the specified constructor. For each such input file, then attempts to xml.MarshalIndent() said structure back into a new output XML file with the same name, in the "outfiles" sub-directory of the specified directory path.

-- godocdown http://github.com/robertkrimen/godocdown

Documentation

Overview

A simple test function shared by the various test programs inside this directory (rss, atom, collada, svg etc.)

Index

Constants

This section is empty.

Variables

View Source
var (
	OnDocLoaded func(interface{})
)

Functions

func TestViaRemarshal

func TestViaRemarshal(dirPath string, makeEmptyDoc func() interface{})

Attempts to xml.Unmarshal() all files in the "infiles" sub-directory of the specified directory path into the interface{} structure returned by the specified constructor. For each such input file, then attempts to xml.MarshalIndent() said structure back into a new output XML file with the same name, in the "outfiles" sub-directory of the specified directory path.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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