Commit Graph

4201 Commits

Author SHA1 Message Date
ionutboangiu
950c5279a6 Delete gob marshaler test until we find a solution
Marshalling a value using GOBMarshaler seems to yield
inconsistent sets of bytes.
2023-10-16 13:31:14 +03:00
NikolasPetriti
49f0fa439c Add coverage tests for engine 2023-09-15 13:52:49 +02:00
NikolasPetriti
870b6e87ae Add gofmt 2023-09-01 17:28:31 +02:00
NikolasPetriti
fe2f034a7a Add coverage tests for config and engine 2023-09-01 17:28:31 +02:00
NikolasPetriti
7050622bc3 Add coverage tests for utils 2023-08-28 12:18:54 +02:00
NikolasPetriti
f7807d26af Add coverage tests for engine 2023-08-28 12:18:54 +02:00
NikolasPetriti
3e7394de75 Add coverage tests for engine 2023-08-28 12:18:54 +02:00
NikolasPetriti
bcf26daf5a Add coverage tests for engine 2023-08-28 12:18:54 +02:00
NikolasPetriti
b590767fc2 Add coverage tests for engine 2023-08-28 12:18:54 +02:00
NikolasPetriti
97b65f9718 Add coverage tests for engine 2023-08-28 12:18:54 +02:00
NikolasPetriti
b2ce0ce167 Add coverage tests for engine 2023-08-28 12:18:54 +02:00
NikolasPetriti
5ef01e6f0b Add coverage tests for engine 2023-08-28 12:18:54 +02:00
NikolasPetriti
af3d585d72 Add coverage tests for engine 2023-08-28 12:18:54 +02:00
NikolasPetriti
81b774f1d5 Revise invalid struct tags for tp models 2023-08-28 12:18:54 +02:00
NikolasPetriti
6779cdf533 Add coverage tests for engine 2023-08-09 13:42:30 +02:00
NikolasPetriti
e90ef030d1 Add coverage tests for engine 2023-08-09 13:42:30 +02:00
NikolasPetriti
16340546c9 Add coverage tests for engine 2023-08-07 17:19:54 +02:00
NikolasPetriti
7b016eef3b Add coverage tests for engine 2023-08-07 11:42:27 +02:00
NikolasPetriti
4c544f427c Add coverage tests for models.go and model_helpers.go 2023-08-07 11:42:27 +02:00
NikolasPetriti
9079248d4e Add coverage tests for model_helpers.go 2023-08-07 11:42:27 +02:00
NikolasPetriti
d284828496 Add coverage tests for model_helpers.go 2023-08-02 16:50:10 +02:00
NikolasPetriti
708302e753 Format all tests 2023-08-02 16:50:10 +02:00
NikolasPetriti
bb4a944135 Add coverage tests for engine 2023-08-02 16:50:10 +02:00
NikolasPetriti
a67caa6dc2 Add coverage tests for action.go 2023-08-02 16:50:10 +02:00
NikolasPetriti
bf6592a428 Add coverage tests for account.go 2023-08-02 16:50:10 +02:00
NikolasPetriti
5ee077df3d Add coverage tests for engine 2023-08-02 16:50:10 +02:00
NikolasPetriti
bcfd9cb1f9 Add coverage tests for engine 2023-08-02 16:50:10 +02:00
NikolasPetriti
94afae087f Add coverage tests for engine 2023-08-02 16:50:10 +02:00
NikolasPetriti
302cb2aec8 Add coverage tests for eventcost.go 2023-08-02 16:50:10 +02:00
NikolasPetriti
36cfcfec26 Add coverage tests for engine 2023-07-21 09:02:30 +02:00
NikolasPetriti
a905707f93 Add coverage tests for engine 2023-07-21 09:02:30 +02:00
NikolasPetriti
84cb2ddd1a Add coverage tests for libeventcost.go 2023-07-21 09:02:30 +02:00
NikolasPetriti
9bef7cdd1f Add coverage tests for engine 2023-07-21 09:02:30 +02:00
ionutboangiu
392b0c30e0 Fix failing unit tests due to redis dependency 2023-07-18 16:37:06 +02:00
ionutboangiu
8174618f73 Apply gofmt 2023-07-18 16:37:06 +02:00
ionutboangiu
d7c6afb82a Revert "Revise syntax for the struct tag values pointed out by go vet"
This reverts commit 9c16f9da5a.
Fixing struct tag values is causing some tests to fail. An issue has
been opened internally which talks in depth about the issue.
2023-07-18 16:37:06 +02:00
ionutboangiu
49bf8abc53 Fix a couple more go vet errors 2023-07-18 16:37:06 +02:00
ionutboangiu
ae67776d30 Make sure no loop variables are captured by func literals 2023-07-18 16:37:06 +02:00
ionutboangiu
c4e820457b Revise syntax for the struct tag values pointed out by go vet 2023-07-18 16:37:06 +02:00
ionutboangiu
2e9653b551 Apply gofmt 2023-07-18 16:37:06 +02:00
NikolasPetriti
95b99614d5 Add coverage tests for balance_filter.go and storage_interface.go 2023-07-14 17:09:31 +02:00
NikolasPetriti
62a8601131 Add coverage tests for balances.go and calldesc.go 2023-07-14 11:27:32 +02:00
NikolasPetriti
df9947730c Add coverage tests for balances.go, resources.go and storage_utils.go 2023-07-13 10:23:31 +02:00
NikolasPetriti
710a8d78be Add coverage tests for filters.go 2023-07-13 10:23:31 +02:00
ionutboangiu
628df25caa Set TimeNotBuiltin msgpack option directly without using BasicHandle
Prevents a situation where when attempting to decode a string into a nil
interface, the decoded value would be the encoded slice of bytes instead
of the string we need.
2023-07-12 17:06:16 +02:00
ionutboangiu
9cea5f1f60 Make msgpack codec backwards compatible with version before 2017 2023-07-10 13:58:21 +02:00
NikolasPetriti
55585a34f2 Revise failing test 2023-07-04 13:20:06 +02:00
ionutboangiu
b5dbb31163 Clean up and refactor after mongo update
- Converting directly from a D to an M is deprecated. We are now decoding
  directly in a M.
- Used errors.As and errors.Is for proper error comparison and assertion
- Streamlined function parameters and removed redundancies
- Revised sloppy reassignments and added missing error checks
- Shortened and reorganized function structure for improved readability
2023-07-04 13:19:31 +02:00
ionutboangiu
076bb172f1 Remove custom time decoder for MongoDB
Remove the custom time decoder used for mongo BSON
datetime values. The custom decoder was only converting these values
into UTC and was not any different from the default time.Time
decoder in the MongoDB driver, which also handles BSON string, int64,
and document values.
2023-07-04 13:19:31 +02:00
ionutboangiu
a7c785d925 Upgrade MongoDB driver to v1.12
- Set (but comment) serverAPI options (currently distinct api and
create.size BSON field are deprecated + possible others that are untested)
- Rename and refactor 'TimeDecodeValue1' to 'decodeTimeValue', add
nil case handling
- Implement 'buildURL' function to connect to mongo (can also be
used for mysql and postgres)
- Update function names, variable names, and comments for clarity
- Replace 'bsonx.Regex' with the Regex primitive for v1.12 compatibility
- Use simple concatenation instead of Sprintf
- Declare 'timeType' locally, replace global 'tTime'
- Use 'RegisterTypeDecoder' to replace deprecated 'RegisterDecoder'
- Simplify several functions without altering functionality
- Remove redundant 'storageType' field in 'mongoStorage',
use 'isDataDB' instead
2023-07-04 13:19:31 +02:00