mirror of
https://github.com/Byron/gitoxide
synced 2025-10-06 01:52:40 +02:00
Change interpolate_user
tests to cover Android
`interpolate_user()` gives `UserInterpolationUnsupported` on both Windows and Android, which is intentional. But the tests treated Windows as the only platform under which this was the case, thereby failing on Android tests. This may have been obscured by prior difficulties running tests on Android builds of `gix-config-value`.
This commit is contained in:
@@ -89,16 +89,16 @@ mod interpolate {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
#[cfg(any(target_os = "windows", target_os = "android"))]
|
||||
#[test]
|
||||
fn tilde_with_given_user_is_unsupported_on_windows() {
|
||||
fn tilde_with_given_user_is_unsupported_on_windows_and_android() {
|
||||
assert!(matches!(
|
||||
interpolate_without_context("~baz/foo/bar"),
|
||||
Err(gix_config_value::path::interpolate::Error::UserInterpolationUnsupported)
|
||||
));
|
||||
}
|
||||
|
||||
#[cfg(not(windows))]
|
||||
#[cfg(not(any(target_os = "windows", target_os = "android")))]
|
||||
#[test]
|
||||
fn tilde_with_given_user() -> crate::Result {
|
||||
let home = std::env::current_dir()?;
|
||||
|
Reference in New Issue
Block a user