TestEmbeddedStruct fails on my environment. It seems to be failed to fetch unexported fields following.
2220 type ContainerStruct struct {
2221 Id string `datastore:"-" goon:"id"`
2222 embeddedStructA
2223 embeddedStructB `datastore:"w"`
2224 }
I think private fields are expected to be ignored by datastore API. So this behavior looks as expected to me. Am I missing something?
The test passed if I make those fields public like this.
2220 type ContainerStruct struct {
2221 Id string `datastore:"-" goon:"id"`
2222 EmbeddedStructA
2223 EmbeddedStructB `datastore:"w"`
2224 }
$ goapp test -v . -run TestEmbeddedStruct
2017/05/03 14:33:06 appengine: not running under devappserver2; using some default configuration
=== RUN TestEmbeddedStruct
INFO 2017-05-03 05:33:07,983 devappserver2.py:756] Skipping SDK update check.
WARNING 2017-05-03 05:33:07,984 devappserver2.py:772] DEFAULT_VERSION_HOSTNAME will not be set correctly with --port=0
WARNING 2017-05-03 05:33:08,079 simple_search_stub.py:1146] Could not read search indexes from /var/folders/h0/c79kbs8x6jj8scsd6j22c5hh01hx69/T/appengine.testapp.yuichi.murata/search_indexes
INFO 2017-05-03 05:33:08,084 api_server.py:205] Starting API server at: http://localhost:50322
INFO 2017-05-03 05:33:08,087 dispatcher.py:197] Starting module "default" running at: http://localhost:50323
INFO 2017-05-03 05:33:08,090 admin_server.py:116] Starting admin server at: http://localhost:50324
--- FAIL: TestEmbeddedStruct (4.35s)
goon_test.go:2266: #1 - Expected - 1, got 0
goon_test.go:2269: #1 - Expected - 3, got 0
goon_test.go:2272: #1 - Expected - 4, got 0
goon_test.go:2266: #2 - Expected - 1, got 0
goon_test.go:2269: #2 - Expected - 3, got 0
goon_test.go:2272: #2 - Expected - 4, got 0
FAIL
exit status 1
FAIL github.com/yuichi1004/goon 4.364s