use qubit_retry::RetryConfigError;
#[test]
fn test_retry_config_error_accessors_and_empty_path_display() {
let empty_path = RetryConfigError::invalid_value("", "missing value");
assert_eq!(empty_path.path(), "");
assert_eq!(empty_path.message(), "missing value");
assert_eq!(
empty_path.to_string(),
"invalid retry configuration: missing value"
);
let keyed = RetryConfigError::invalid_value("retry.max_attempts", "must be positive");
assert_eq!(keyed.path(), "retry.max_attempts");
assert_eq!(keyed.message(), "must be positive");
assert_eq!(
keyed.to_string(),
"invalid retry configuration at 'retry.max_attempts': must be positive"
);
}