Tests for generated code
This directory contains generated tests that ensure code generated by the xsdgen package can marshal and unmarshal documents described by an XML schema.
To update the tests here, run
Tests should be re-generated any time code generation behavior is changed.
Adding a new test
Adding a new test (and making it pass) is a great way to ensure your use case continues to work. Create a new subdirectory with the following:
- An XML schema file with the extension
- A sample XML document that conforms to the schema with
If possible, use a small schema, or trim down an existing schema.
Package gentest generates marshal/unmarshal tests for the xsdgen package.