Skip to content

Commit 91fecdf

Browse files
authored
chore: remove unneded TODOs
1 parent 01cd766 commit 91fecdf

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/variables.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ mod tests {
5353
let result = set_variable("TEST_VAR", "test_value", false, None);
5454
assert!(result.is_ok());
5555
assert_eq!(env::var("TEST_VAR").unwrap(), "test_value");
56-
// TODO: Audit that the environment access only happens in single-threaded code.
5756
unsafe { env::remove_var("TEST_VAR") };
5857
}
5958

@@ -67,16 +66,13 @@ mod tests {
6766
let result = set_variable("TEST_PROC_VAR", "test_value", false, Some(cmd.to_string()));
6867
assert!(result.is_ok());
6968
assert_eq!(env::var("TEST_PROC_VAR").unwrap(), "test_value");
70-
// TODO: Audit that the environment access only happens in single-threaded code.
7169
unsafe { env::remove_var("TEST_PROC_VAR") };
7270
}
7371

7472
#[test]
7573
fn test_print_env() {
76-
// TODO: Audit that the environment access only happens in single-threaded code.
7774
unsafe { env::set_var("TEST_PRINT_VAR", "test_value") };
7875
print_env();
79-
// TODO: Audit that the environment access only happens in single-threaded code.
8076
unsafe { env::remove_var("TEST_PRINT_VAR") };
8177
}
8278

@@ -97,13 +93,11 @@ mod tests {
9793
assert_eq!(env::var("TEST_INVALID_PROC").unwrap(), "test_value");
9894

9995
// Cleanup
100-
// TODO: Audit that the environment access only happens in single-threaded code.
10196
unsafe { env::remove_var("TEST_INVALID_PROC") };
10297
}
10398

10499
#[test]
105100
fn test_delete_variable() {
106-
// TODO: Audit that the environment access only happens in single-threaded code.
107101
unsafe { env::set_var("TEST_DELETE_VAR", "test_value") };
108102
let result = delete_variable("TEST_DELETE_VAR".to_string(), false);
109103
assert!(result.is_ok());
@@ -115,46 +109,37 @@ mod tests {
115109
let result = set_variable("TEST_EMPTY_VAR", "", false, None);
116110
assert!(result.is_ok());
117111
assert_eq!(env::var("TEST_EMPTY_VAR").unwrap(), "");
118-
// TODO: Audit that the environment access only happens in single-threaded code.
119112
unsafe { env::remove_var("TEST_EMPTY_VAR") };
120113
}
121114

122115
#[test]
123116
fn test_print_env_format() {
124117
// Set up test environment variables
125-
// TODO: Audit that the environment access only happens in single-threaded code.
126118
unsafe { env::set_var("TEST_VAR_1", "value1") };
127-
// TODO: Audit that the environment access only happens in single-threaded code.
128119
unsafe { env::set_var("TEST_VAR_2", "value2") };
129120

130121
print_env();
131122

132123
// Clean up
133-
// TODO: Audit that the environment access only happens in single-threaded code.
134124
unsafe { env::remove_var("TEST_VAR_1") };
135-
// TODO: Audit that the environment access only happens in single-threaded code.
136125
unsafe { env::remove_var("TEST_VAR_2") };
137126
}
138127

139128
#[test]
140129
fn test_print_env_empty_value() {
141-
// TODO: Audit that the environment access only happens in single-threaded code.
142130
unsafe { env::set_var("TEST_EMPTY", "") };
143131

144132
print_env();
145133

146-
// TODO: Audit that the environment access only happens in single-threaded code.
147134
unsafe { env::remove_var("TEST_EMPTY") };
148135
}
149136

150137
#[test]
151138
fn test_print_env_special_characters() {
152-
// TODO: Audit that the environment access only happens in single-threaded code.
153139
unsafe { env::set_var("TEST_SPECIAL", "value with spaces and $#@!") };
154140

155141
print_env();
156142

157-
// TODO: Audit that the environment access only happens in single-threaded code.
158143
unsafe { env::remove_var("TEST_SPECIAL") };
159144
}
160145

0 commit comments

Comments
 (0)