Skip to content

Commit 4315561

Browse files
committed
style: standardize test section separators to unicode single-line
Replace triple-line ASCII separators (// ----) in context and config tests with the single-line unicode style (// ─── Name ───) used consistently across all other test files.
1 parent 8e513f0 commit 4315561

2 files changed

Lines changed: 16 additions & 48 deletions

File tree

tests/config.rs

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
use commitbee::config::{Config, Provider};
66

7-
// ---------------------------------------------------------------------------
8-
// Default values
9-
// ---------------------------------------------------------------------------
7+
// ─── Default values ──────────────────────────────────────────────────────────
108

119
#[test]
1210
fn default_config_values() {
@@ -23,9 +21,7 @@ fn default_config_values() {
2321
assert!(config.format.lowercase_subject);
2422
}
2523

26-
// ---------------------------------------------------------------------------
27-
// TOML deserialization
28-
// ---------------------------------------------------------------------------
24+
// ─── TOML deserialization ────────────────────────────────────────────────────
2925

3026
#[test]
3127
fn load_from_valid_toml() {
@@ -74,9 +70,7 @@ fn empty_toml_uses_all_defaults() {
7470
assert_eq!(config.max_diff_lines, default.max_diff_lines);
7571
}
7672

77-
// ---------------------------------------------------------------------------
78-
// Provider display
79-
// ---------------------------------------------------------------------------
73+
// ─── Provider display ────────────────────────────────────────────────────────
8074

8175
#[test]
8276
fn provider_display_format() {
@@ -85,9 +79,7 @@ fn provider_display_format() {
8579
assert_eq!(format!("{}", Provider::Anthropic), "anthropic");
8680
}
8781

88-
// ---------------------------------------------------------------------------
89-
// Format section defaults
90-
// ---------------------------------------------------------------------------
82+
// ─── Format section defaults ─────────────────────────────────────────────────
9183

9284
#[test]
9385
fn format_section_defaults() {
@@ -99,9 +91,7 @@ fn format_section_defaults() {
9991
assert!(config.format.lowercase_subject);
10092
}
10193

102-
// ---------------------------------------------------------------------------
103-
// Error handling
104-
// ---------------------------------------------------------------------------
94+
// ─── Error handling ──────────────────────────────────────────────────────────
10595

10696
#[test]
10797
fn invalid_toml_returns_error() {

tests/context.rs

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ use commitbee::domain::{ChangeStatus, CodeSymbol, CommitType, FileCategory, Symb
1111
use commitbee::services::context::ContextBuilder;
1212
use helpers::{make_file_change, make_staged_changes};
1313

14-
// ---------------------------------------------------------------------------
15-
// Helpers
16-
// ---------------------------------------------------------------------------
14+
// ─── Helpers ─────────────────────────────────────────────────────────────────
1715

1816
fn default_config() -> Config {
1917
Config::default()
@@ -36,9 +34,7 @@ fn make_symbol(
3634
}
3735
}
3836

39-
// ---------------------------------------------------------------------------
40-
// CommitType inference
41-
// ---------------------------------------------------------------------------
37+
// ─── CommitType inference ─────────────────────────────────────────────────────
4238

4339
#[test]
4440
fn infer_type_all_docs() {
@@ -160,9 +156,7 @@ fn infer_type_small_change_is_fix() {
160156
);
161157
}
162158

163-
// ---------------------------------------------------------------------------
164-
// Scope inference
165-
// ---------------------------------------------------------------------------
159+
// ─── Scope inference ─────────────────────────────────────────────────────────
166160

167161
#[test]
168162
fn infer_scope_single_module() {
@@ -192,9 +186,7 @@ fn infer_scope_none_for_mixed_modules() {
192186
);
193187
}
194188

195-
// ---------------------------------------------------------------------------
196-
// Prompt output
197-
// ---------------------------------------------------------------------------
189+
// ─── Prompt output ───────────────────────────────────────────────────────────
198190

199191
#[test]
200192
fn prompt_includes_symbols_when_present() {
@@ -256,9 +248,7 @@ fn prompt_omits_symbols_when_empty() {
256248
);
257249
}
258250

259-
// ---------------------------------------------------------------------------
260-
// Budget management
261-
// ---------------------------------------------------------------------------
251+
// ─── Budget management ───────────────────────────────────────────────────────
262252

263253
#[test]
264254
fn prompt_respects_budget() {
@@ -286,9 +276,7 @@ fn prompt_respects_budget() {
286276
);
287277
}
288278

289-
// ---------------------------------------------------------------------------
290-
// FileCategory classification
291-
// ---------------------------------------------------------------------------
279+
// ─── FileCategory classification ─────────────────────────────────────────────
292280

293281
#[test]
294282
fn file_category_source() {
@@ -367,9 +355,7 @@ fn file_category_build() {
367355
}
368356
}
369357

370-
// ---------------------------------------------------------------------------
371-
// Additional CommitType inference
372-
// ---------------------------------------------------------------------------
358+
// ─── Additional CommitType inference ──────────────────────────────────────────
373359

374360
#[test]
375361
fn infer_type_more_deletions_is_refactor() {
@@ -407,9 +393,7 @@ fn infer_type_default_fallback_is_feat() {
407393
);
408394
}
409395

410-
// ---------------------------------------------------------------------------
411-
// Additional budget and truncation
412-
// ---------------------------------------------------------------------------
396+
// ─── Additional budget and truncation ─────────────────────────────────────────
413397

414398
#[test]
415399
fn symbols_budget_truncation() {
@@ -465,9 +449,7 @@ fn skip_content_lock_files() {
465449
);
466450
}
467451

468-
// ---------------------------------------------------------------------------
469-
// Additional scope inference
470-
// ---------------------------------------------------------------------------
452+
// ─── Additional scope inference ──────────────────────────────────────────────
471453

472454
#[test]
473455
fn scope_from_packages_prefix() {
@@ -486,9 +468,7 @@ fn scope_from_packages_prefix() {
486468
);
487469
}
488470

489-
// ---------------------------------------------------------------------------
490-
// Additional FileCategory classification
491-
// ---------------------------------------------------------------------------
471+
// ─── Additional FileCategory classification ──────────────────────────────────
492472

493473
#[test]
494474
fn file_category_other() {
@@ -501,9 +481,7 @@ fn file_category_other() {
501481
);
502482
}
503483

504-
// ---------------------------------------------------------------------------
505-
// Multi-file diff truncation
506-
// ---------------------------------------------------------------------------
484+
// ─── Multi-file diff truncation ──────────────────────────────────────────────
507485

508486
#[test]
509487
fn diff_truncation_multiple_files() {

0 commit comments

Comments
 (0)