@@ -145,17 +145,17 @@ mod tests {
145145 fn test_map_docker_to_podman ( ) {
146146 let cmd = Command :: new ( "docker" ) ;
147147 let mapped = map_docker_to_podman ( cmd) ;
148-
148+
149149 assert_eq ! ( mapped. program. to_string_lossy( ) , "podman" ) ;
150150 }
151151
152152 #[ test]
153153 fn test_map_docker_to_podman_with_args ( ) {
154154 let mut cmd = Command :: new ( "docker" ) ;
155155 cmd. args ( [ "ps" , "-a" ] ) ;
156-
156+
157157 let mapped = map_docker_to_podman ( cmd) ;
158-
158+
159159 assert_eq ! ( mapped. program. to_string_lossy( ) , "podman" ) ;
160160 assert_eq ! ( mapped. args[ 0 ] . to_string_lossy( ) , "ps" ) ;
161161 assert_eq ! ( mapped. args[ 1 ] . to_string_lossy( ) , "-a" ) ;
@@ -165,7 +165,7 @@ mod tests {
165165 fn test_map_docker_to_podman_non_docker ( ) {
166166 let cmd = Command :: new ( "other-command" ) ;
167167 let mapped = map_docker_to_podman ( cmd) ;
168-
168+
169169 // Non-docker commands should not be changed
170170 assert_eq ! ( mapped. program. to_string_lossy( ) , "other-command" ) ;
171171 }
@@ -174,31 +174,31 @@ mod tests {
174174 fn test_podman_event_is_distrobox ( ) {
175175 let mut attrs = HashMap :: new ( ) ;
176176 attrs. insert ( "manager" . to_string ( ) , "distrobox" . to_string ( ) ) ;
177-
177+
178178 let event = PodmanEvent {
179179 id : Some ( "abc123" . to_string ( ) ) ,
180180 name : Some ( "my-container" . to_string ( ) ) ,
181181 status : Some ( "start" . to_string ( ) ) ,
182182 event_type : Some ( "container" . to_string ( ) ) ,
183183 attributes : Some ( attrs) ,
184184 } ;
185-
185+
186186 assert ! ( event. is_distrobox( ) ) ;
187187 }
188188
189189 #[ test]
190190 fn test_podman_event_not_distrobox ( ) {
191191 let mut attrs = HashMap :: new ( ) ;
192192 attrs. insert ( "manager" . to_string ( ) , "other" . to_string ( ) ) ;
193-
193+
194194 let event = PodmanEvent {
195195 id : Some ( "abc123" . to_string ( ) ) ,
196196 name : None ,
197197 status : None ,
198198 event_type : None ,
199199 attributes : Some ( attrs) ,
200200 } ;
201-
201+
202202 assert ! ( !event. is_distrobox( ) ) ;
203203 }
204204
@@ -211,7 +211,7 @@ mod tests {
211211 event_type : None ,
212212 attributes : None ,
213213 } ;
214-
214+
215215 assert ! ( !event. is_distrobox( ) ) ;
216216 }
217217
@@ -224,7 +224,7 @@ mod tests {
224224 event_type : Some ( "container" . to_string ( ) ) ,
225225 attributes : None ,
226226 } ;
227-
227+
228228 assert ! ( event. is_container_event( ) ) ;
229229 }
230230
@@ -237,7 +237,7 @@ mod tests {
237237 event_type : Some ( "image" . to_string ( ) ) ,
238238 attributes : None ,
239239 } ;
240-
240+
241241 assert ! ( !event. is_container_event( ) ) ;
242242 }
243243
@@ -250,8 +250,7 @@ mod tests {
250250 event_type : None ,
251251 attributes : None ,
252252 } ;
253-
253+
254254 assert ! ( !event. is_container_event( ) ) ;
255255 }
256256}
257-
0 commit comments