Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing UnmarshalJSON method #238

Open
nicolasStevenin opened this issue Jan 16, 2018 · 0 comments
Open

missing UnmarshalJSON method #238

nicolasStevenin opened this issue Jan 16, 2018 · 0 comments

Comments

@nicolasStevenin
Copy link

Hi,

When I try to test the repo "tests" it fails with

  • go test -compiler gc -ldflags '-X github.com/pquerna/ffjson/version.GitSHA=d49c2bc1aa135aad0c6f4fc2056623ec78f5d5ac -extldflags '''-Wl,-z,relro ''''
    FAIL github.com/pquerna/ffjson/tests [build failed]

github.com/pquerna/ffjson/tests

./ff_invalid_test.go:35:12: cannot use Xstring literal (type *Xstring) as type json.Unmarshaler in argument to testExpectedError:
*Xstring does not implement json.Unmarshaler (missing UnmarshalJSON method)
./ff_invalid_test.go:42:12: cannot use Xstring literal (type *Xstring) as type json.Unmarshaler in argument to testExpectedError:
*Xstring does not implement json.Unmarshaler (missing UnmarshalJSON method)
./ff_invalid_test.go:49:12: cannot use Xstring literal (type *Xstring) as type json.Unmarshaler in argument to testExpectedError:
*Xstring does not implement json.Unmarshaler (missing UnmarshalJSON method)
./ff_invalid_test.go:56:11: cannot use Xarray literal (type *Xarray) as type json.Unmarshaler in argument to testExpectedError:
*Xarray does not implement json.Unmarshaler (missing UnmarshalJSON method)
./ff_invalid_test.go:63:11: cannot use Xarray literal (type *Xarray) as type json.Unmarshaler in argument to testExpectedError:
*Xarray does not implement json.Unmarshaler (missing UnmarshalJSON method)
./ff_invalid_test.go:70:11: cannot use Xarray literal (type *Xarray) as type json.Unmarshaler in argument to testExpectedError:
*Xarray does not implement json.Unmarshaler (missing UnmarshalJSON method)
./ff_invalid_test.go:77:11: cannot use Xarray literal (type *Xarray) as type json.Unmarshaler in argument to testExpectedError:
*Xarray does not implement json.Unmarshaler (missing UnmarshalJSON method)
./ff_invalid_test.go:84:11: cannot use Xarray literal (type *Xarray) as type json.Unmarshaler in argument to testExpectedError:
*Xarray does not implement json.Unmarshaler (missing UnmarshalJSON method)
./ff_invalid_test.go:91:11: cannot use Xint64 literal (type *Xint64) as type json.Unmarshaler in argument to testExpectedError:
*Xint64 does not implement json.Unmarshaler (missing UnmarshalJSON method)
./ff_invalid_test.go:98:12: cannot use Xstring literal (type *Xstring) as type json.Unmarshaler in argument to testExpectedError:
*Xstring does not implement json.Unmarshaler (missing UnmarshalJSON method)
./ff_invalid_test.go:98:12: too many errors

Thank you for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant