Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Feb 5, 2025
1 parent 0a6a292 commit 978efcc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/cli/src/commands/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ mod tests {
#[tokio::test]
async fn test_format_go_imports() -> Result<()> {
// This somehow has a massive memory leak but only in --release mode
// See https://github.com/biomejs/biome/issues/5032

let fixtures_path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.parent()
Expand Down
18 changes: 18 additions & 0 deletions crates/cli_bin/fixtures/go/imports.grit
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language go

// All core stdlib functions can be done here
private pattern before_each_file_stdlib() {
before_each_file_prep_imports()
}

private pattern after_each_file_stdlib() {
after_each_file_handle_imports()
}

pattern before_each_file() {
before_each_file_stdlib()
}

pattern after_each_file() {
after_each_file_stdlib()
}

0 comments on commit 978efcc

Please sign in to comment.