David Bartley
4f2c5582d1
Pass by value in `MarshalXML`.
2024-04-10 09:12:15 -04:00
Aaron Lindsay
5ed0050aad
Add tests for String/Boolean String() methods
2021-10-17 21:55:45 -04:00
Aaron Lindsay
65cc26a0db
Make golint happy
2020-10-06 23:14:42 -04:00
John Starich
8ad638c7e2
Rename ofxgo_test package to ofxgo and remove self-imports/references
...
* Fix package in generate_constants.py
* Update generate_constants.py to use the new imports
2020-04-03 08:38:41 -04:00
Aaron Lindsay
ddc674b287
go fmt
2017-11-18 05:58:32 -05:00
Aaron Lindsay
f408232d77
Mark testing helper functions with t.Helper()
...
This makes error messages from tests report the line number of the error
in the test function itself instead of the error in the helper.
2017-10-06 05:53:19 -04:00
Aaron Lindsay
1e55cb8bd7
Switch to copy of encoding/xml with only that subdirectory
2017-10-02 09:21:56 -04:00
Aaron Lindsay
1ee7197340
Add validation of banking requests and responses
2017-04-18 19:46:23 -04:00
Aaron Lindsay
faac776ca4
Add Currency type
2017-04-17 20:11:53 -04:00
Aaron Lindsay
749c2e9f3a
Add test for RandomUID
2017-04-08 10:55:11 -04:00
Aaron Lindsay
f794d452c4
Test for spaces after newlines when unmarshalling elements
2017-04-04 20:22:12 -04:00
Aaron Lindsay
6d8578c056
Add test for Amount.Equal()
2017-04-04 20:20:31 -04:00
Aaron Lindsay
061b31a99d
Add test for Date.Equal()
2017-04-04 19:51:35 -04:00
Aaron Lindsay
1560f44a3c
Switch Date to contain time.Time instead of being a typedef
2017-04-04 19:50:41 -04:00
Aaron Lindsay
7f5ef5751d
Switch Amount to contain big.Rat instead of being a typedef
2017-04-03 21:15:08 -04:00
Aaron Lindsay
7834d53f9b
Trim spaces when unmarshalling UIDs
...
This ensures the correct value is parsed when SGML tags aren't closed.
Also add a test.
2017-04-03 19:46:10 -04:00
Aaron Lindsay
5596cfbf8d
Don't require UIDs to be 36 characters
...
The spec strongly recommends this, but doesn't strictly require it
2017-03-29 09:23:15 -04:00
Aaron Lindsay
31f33b66d7
go fmt
2017-03-27 20:14:18 -04:00
Aaron Lindsay
f2cea7c6d4
Switch to own clone of xml encoding library
2017-03-22 20:59:40 -04:00
Aaron Lindsay
81814feaff
types: Be more lenient on Date, Int, and Amount parsing
...
Some of these types can have stray newlines in them, and Vanguard has a
very strange bug where they repeat the time portion of a DTSTART element
for a second time (we disregard the latter portion).
2017-03-19 20:46:01 -04:00
Aaron Lindsay
257495a343
Add testing for basic types, fix some bugs
2017-03-13 21:09:15 -04:00