15 Commits

Author SHA1 Message Date
mutouyun
9079ca83ce test(fmt): add unit tests for hex formatting with ipc::spec (issue #171)
Add comprehensive test cases demonstrating the correct way to format
hexadecimal values using ipc::fmt and ipc::spec, addressing the MinGW
compilation failure reported in issue #171.

The tests cover:
- Basic hex formatting (lowercase/uppercase)
- Hex formatting with 0x prefix
- Mixed decimal and hex output patterns (like the problematic log calls)
- Various integer types with hex formatting
- Width and padding options

Note: ipc::spec format strings should NOT include length modifiers
(like "ll"). The to_string function automatically adds the correct
length modifier based on the argument type.

Refs: #171
2026-01-21 06:20:15 +00:00
木头云
fc7fa158b6 fix(test): Update test.h include paths after master rebase
After rebasing onto master, test.h was moved to test/archive/.
Updated include paths in test subdirectories:
- test/imp/*.cpp: "test.h" -> "../archive/test.h"
- test/mem/*.cpp: "test.h" -> "../archive/test.h"
- test/concur/*.cpp: "test.h" -> "../archive/test.h"

This ensures all test files can properly find the test header
after the directory reorganization in master branch.
2025-12-12 07:04:31 +00:00
mutouyun
165060e0b6 Fix the issue caused by inconsistent lifecycle of the global IPC object. 2025-12-12 07:04:31 +00:00
mutouyun
9276fcbcda Fix fmt function to handle null pointers and return empty string 2025-12-12 07:04:31 +00:00
mutouyun
d00dcbbf15 Fix fmt function to handle empty strings and update make_prefix template parameters 2025-12-12 07:04:31 +00:00
mutouyun
7536757064 Optimized partial implementation using fmt 2025-12-12 07:04:31 +00:00
mutouyun
52951e44f8 Add system 2025-12-12 07:04:31 +00:00
mutouyun
5f75f1d738 Add result 2025-12-12 07:04:31 +00:00
mutouyun
ecd1aaac40 Add log 2025-12-12 07:04:31 +00:00
mutouyun
208ac889e7 Add error 2025-12-12 07:04:31 +00:00
mutouyun
d20f88c349 Added fmt support for byte 2025-12-12 07:04:31 +00:00
mutouyun
bc29c85c1a Add fmt 2025-12-12 07:04:31 +00:00
mutouyun
95bf3afe9b Add codecvt 2025-12-12 07:04:31 +00:00
mutouyun
bf7c6b41e9 Add expected 2025-12-12 07:04:31 +00:00
mutouyun
2e7ab8b34f Add imp for subsequent refactoring 2025-12-12 07:04:31 +00:00