generator

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

README

The testdata folder

All directories under the testdata folder are considered separate test suites and are executed by the TestAll The following rules apply:

  • each folder should define entities - a ".go" file(s) with struct(s)
  • each entity should have a special "-obx.go.expected" file with the expected content of the generated bindings
  • each folder should include "objectbox-model.json.expected" - expected content of the ".json" model information
  • each folder should include "objectbox-model.go.expected" - expected content of the ".go" model composition code
  • there can be a "objectbox-model.json.initial" - it would be used as an initial value for the ".json" file before executing the generator

Negative tests

When a file ends with .fail.go, it's considered a negative test (the generation should fail):

  • it should not generate a binding (thus there's no need for the ".obx.go.expected" file)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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