feat(p7-02): fill opts_test.go stubs — ServerOptionsTests
Write 3 unit tests portable without a running server:
- ListenMonitoringDefault (T:2524): SetBaselineOptions propagates Host → HttpHost
- GetStorageSize (T:2576): StorageSizeJsonConverter.Parse K/M/G/T suffixes
- ClusterNameAndGatewayNameConflict (T:2571): ValidateOptions returns ErrClusterNameConfigConflict
Mark 74 opts_test.go stubs deferred: tests require either the NATS
conf-format parser (not yet ported), a running server (RunServer/NewServer),
or CLI flag-parsing infrastructure (ConfigureOptions).
Fix StorageSizeJsonConverter.Parse to return 0 for empty input,
matching Go getStorageSize("") == (0, nil).
Total unit tests: 638 passing.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# NATS .NET Porting Status Report
|
||||
|
||||
Generated: 2026-02-26 23:53:55 UTC
|
||||
Generated: 2026-02-27 00:00:19 UTC
|
||||
|
||||
## Modules (12 total)
|
||||
|
||||
@@ -21,10 +21,11 @@ Generated: 2026-02-26 23:53:55 UTC
|
||||
|
||||
| Status | Count |
|
||||
|--------|-------|
|
||||
| complete | 205 |
|
||||
| complete | 208 |
|
||||
| deferred | 74 |
|
||||
| n_a | 187 |
|
||||
| not_started | 2527 |
|
||||
| stub | 224 |
|
||||
| stub | 147 |
|
||||
| verified | 114 |
|
||||
|
||||
## Library Mappings (36 total)
|
||||
@@ -36,4 +37,4 @@ Generated: 2026-02-26 23:53:55 UTC
|
||||
|
||||
## Overall Progress
|
||||
|
||||
**4190/6942 items complete (60.4%)**
|
||||
**4193/6942 items complete (60.4%)**
|
||||
|
||||
Reference in New Issue
Block a user