style(format): reformat code with consistent line breaks and spacing
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
use gitks::sanitize::*;
|
||||
|
||||
|
||||
#[test]
|
||||
fn test_validate_ref_name_accepts_valid_names() {
|
||||
assert!(validate_ref_name("main").is_ok());
|
||||
@@ -70,7 +69,6 @@ fn test_validate_ref_name_rejects_too_long() {
|
||||
assert!(validate_ref_name(&max_valid_name).is_ok());
|
||||
}
|
||||
|
||||
|
||||
#[test]
|
||||
fn test_validate_revision_accepts_empty() {
|
||||
assert!(validate_revision("").is_err());
|
||||
@@ -149,7 +147,6 @@ fn test_validate_revision_accepts_valid_branch_names() {
|
||||
assert!(validate_revision("v1.0.0").is_ok());
|
||||
}
|
||||
|
||||
|
||||
#[test]
|
||||
fn test_validate_file_path_accepts_valid_paths() {
|
||||
assert!(validate_file_path("file.txt").is_ok());
|
||||
@@ -215,7 +212,6 @@ fn test_validate_file_path_rejects_windows_reserved_names() {
|
||||
assert!(validate_file_path("CON.txt").is_err());
|
||||
}
|
||||
|
||||
|
||||
#[test]
|
||||
fn test_validate_relative_path_accepts_valid_paths() {
|
||||
assert!(validate_relative_path("repo").is_ok());
|
||||
@@ -242,7 +238,6 @@ fn test_validate_relative_path_rejects_traversal() {
|
||||
assert!(validate_relative_path("path/..").is_err());
|
||||
}
|
||||
|
||||
|
||||
#[test]
|
||||
fn test_validate_config_key_accepts_safe_keys() {
|
||||
assert!(validate_config_key("user.name").is_ok());
|
||||
@@ -279,7 +274,6 @@ fn test_validate_config_key_rejects_invalid_chars() {
|
||||
assert!(validate_config_key("key`command`").is_err());
|
||||
}
|
||||
|
||||
|
||||
/// Ensure no input causes panic in validate_ref_name.
|
||||
#[test]
|
||||
fn fuzz_validate_ref_name_no_panic() {
|
||||
|
||||
Reference in New Issue
Block a user