Commit Graph

3 Commits

Author SHA1 Message Date
Claude
b70595cebe fix(config): reject channel properties of the wrong type
- ptree::get(key, default) returns the default also for a value that
  does not convert, so a typo (e.g. sndBufSize=big) silently gave the
  default value
- Use the default only for a missing key; throw ParserError with the
  key and the value for a value of the wrong type
- Rethrow parser errors in the config plugin: before, the device
  logged the error and continued without its channel configuration
- Enable JSONParser and SuboptParser RejectsValuesOfTheWrongType
- Update the documentation pages that described the defect, and
  the source line links into the changed files

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 15:42:53 +01:00
Claude
69064731af test(properties): add tests for the JSON and suboption channel parsers
- JSONParser: sub-channels inherit and override the channel values,
  numSockets expansion, defaults, device selection by key or id,
  errors for no id, no fairMQOptions, no channel name and no file
- SuboptParser: all keys with their types, one sub-channel per address,
  numSockets, unknown keys, no channel name, no device id
- Add disabled tests for a known defect: a value of the wrong type
  silently gives the default

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 17:00:01 +01:00
Dennis Klein
cb4335e59f Add test coverage for --channel-config name selector 2021-03-05 02:02:14 +01:00