Commit graph

12 commits

Author SHA1 Message Date
ebb0b12069 Add bep.JSON helper for JSON assertion in tests
- Create internal/testutil/bep package with JSON helper
- Use bep.JSON in formatters/json_test.go, models/entry_test.go, and models/meta_test.go
2026-02-13 16:25:37 -06:00
1110288d84 Migrate from testify to nalgeon/be testing library
- Replace all testify/assert and testify/require with be library
- Update go.mod to use be v0.3.0 instead of testify
- Simplify test assertions using be.Equal, be.Err, and be.True
- Refactor append_test, entry_test, meta_test, log_test, and formatter tests
2026-02-13 16:02:38 -06:00
4fc1c623a0 Implement full support for nested fields in Meta and Entry marshalling
This commit completes the implementation of nested field support.
- :
    -  now correctly handles  and  by recursively flattening them into  format.
    - Introduced  for recursive map marshalling.
    - Refactored  for cleaner buffer writing.
- : Added comprehensive test cases for nested JSON, nested maps, double-nested maps, and nested keys within JSON to ensure correct marshalling and unmarshalling.
- : Updated tests to reflect the new nil handling and removed redundant JSON object test.

This allows for more flexible and structured data representation within log entries.
2026-02-10 18:15:07 -06:00
e9c01097a6 Add Set method to Metas and tests 2026-02-01 18:18:46 -06:00
cccac79439 Add Get method to Metas type 2026-02-01 11:29:04 -06:00
79fa957d02 Some convenience methods for Metas 2024-03-11 16:04:29 -05:00
820a2de269 ♻️ Get rid of PartialEntry 2024-03-10 15:26:00 -05:00
286ac4557d ♻️ Add tools.WriteValue 2024-03-03 13:56:48 -06:00
16a0a9d20b Special handling of json field 2024-01-30 23:40:47 -06:00
2d68691408 ♻️ Use defined errors 2024-01-28 12:41:55 -06:00
875ca7e33d Meta implements TextUnmarshaler 2024-01-27 16:07:27 -06:00
3cfb1ccedb Add Meta with TextMarshaler 2024-01-26 20:00:03 -06:00