package
0.9.0
Repository: https://github.com/objectbox/objectbox-go.git
Documentation: pkg.go.dev

# 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 starts with an underscore, 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)