From ae816ee9af3bf0ef453f1f45bbd28fcb26857a46 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Thu, 5 Feb 2026 14:41:06 +0000 Subject: [PATCH] Initial upload with CI/CD workflow --- tests/fixtures/sample.rs | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 tests/fixtures/sample.rs diff --git a/tests/fixtures/sample.rs b/tests/fixtures/sample.rs new file mode 100644 index 0000000..69a8044 --- /dev/null +++ b/tests/fixtures/sample.rs @@ -0,0 +1,60 @@ +// This is a Rust file with various TODO/FIXME comments + +fn calculate_sum(a: i32, b: i32) -> i32 { + // TODO: Implement proper error handling + a + b +} + +fn process_data(data: &[u8]) -> Result<(), String> { + // FIXME: This function has a bug with empty data + if data.is_empty() { + return Err("No data provided".to_string()); + } + Ok(()) +} + +fn complex_function(x: i32) -> i32 { + // HACK: This is a workaround for a dependency issue + // TODO: Refactor this when the library is updated + x * 2 + 1 +} + +fn another_function() { + // NOTE: This function is deprecated + // TODO: Remove in next version + println!("This is deprecated"); +} + +struct User { + id: u32, + name: String, +} + +impl User { + fn new(id: u32, name: String) -> Self { + // FIXME: Validation is missing here! + Self { id, name } + } +} + +// XXX: This is a critical issue that needs immediate attention +fn critical_function() { + // BUG: Memory leak detected here + let _data = vec![1, 2, 3]; +} + +// TODO: Implement unit tests for this module +// TODO: Add documentation comments + +fn temp_impl() { + // TEMP: Quick fix for release + println!("temp"); +} + +fn refactor_needed() { + // REFACTOR: This code is hard to maintain + let x = 1; + let y = 2; + let z = 3; + println!("{} {} {}", x, y, z); +}