@@ -331,13 +331,13 @@ pub fn reverse_hunk(hunk: &Hunk) -> Option<Hunk> {
331
331
332
332
#[ cfg( test) ]
333
333
mod tests {
334
- use crate :: test_utils ;
334
+ use crate :: tests ;
335
335
336
336
use super :: * ;
337
337
338
338
#[ test]
339
339
fn diff_simple_text ( ) {
340
- let repository = test_utils :: test_repository ( ) ;
340
+ let repository = tests :: test_repository ( ) ;
341
341
std:: fs:: write ( repository. workdir ( ) . unwrap ( ) . join ( "file" ) , "hello" ) . unwrap ( ) ;
342
342
343
343
let head_commit_id = repository. head ( ) . unwrap ( ) . peel_to_commit ( ) . unwrap ( ) . id ( ) ;
@@ -360,7 +360,7 @@ mod tests {
360
360
361
361
#[ test]
362
362
fn diff_empty_file ( ) {
363
- let repository = test_utils :: test_repository ( ) ;
363
+ let repository = tests :: test_repository ( ) ;
364
364
std:: fs:: write ( repository. workdir ( ) . unwrap ( ) . join ( "first" ) , "" ) . unwrap ( ) ;
365
365
366
366
let head_commit_id = repository. head ( ) . unwrap ( ) . peel_to_commit ( ) . unwrap ( ) . id ( ) ;
@@ -383,7 +383,7 @@ mod tests {
383
383
384
384
#[ test]
385
385
fn diff_multiple_empty_files ( ) {
386
- let repository = test_utils :: test_repository ( ) ;
386
+ let repository = tests :: test_repository ( ) ;
387
387
std:: fs:: write ( repository. workdir ( ) . unwrap ( ) . join ( "first" ) , "" ) . unwrap ( ) ;
388
388
std:: fs:: write ( repository. workdir ( ) . unwrap ( ) . join ( "second" ) , "" ) . unwrap ( ) ;
389
389
@@ -419,7 +419,7 @@ mod tests {
419
419
420
420
#[ test]
421
421
fn diff_binary ( ) {
422
- let repository = test_utils :: test_repository ( ) ;
422
+ let repository = tests :: test_repository ( ) ;
423
423
std:: fs:: write (
424
424
repository. workdir ( ) . unwrap ( ) . join ( "image" ) ,
425
425
[
@@ -450,7 +450,7 @@ mod tests {
450
450
451
451
#[ test]
452
452
fn diff_some_lines_are_binary ( ) {
453
- let repository = test_utils :: test_repository ( ) ;
453
+ let repository = tests :: test_repository ( ) ;
454
454
std:: fs:: write (
455
455
repository. workdir ( ) . unwrap ( ) . join ( "file" ) ,
456
456
[
0 commit comments