Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
182: move test Uuid creation functions into new module r=Dylan-DPC a=kinggoesgaming **I'm submitting a ...** - [ ] bug fix - [ ] feature enhancement - [ ] deprecation or removal - [x] refactor # Description Refactor the `tests::new` and `tests::new2` functions into `test_util` module. # Motivation Part of the great refactor. Allows different tests in different modules access the test constructors for `Uuid` # Tests The tests are passing # Related Issue(s) #124
- Loading branch information
Showing
3 changed files
with
73 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use Uuid; | ||
|
||
pub fn new() -> Uuid { | ||
Uuid { | ||
bytes: [ | ||
0xF9, 0x16, 0x8C, 0x5E, 0xCE, 0xB2, 0x4F, 0xAA, 0xB6, 0xBF, 0x32, 0x9B, 0xF3, 0x9F, | ||
0xA1, 0xE4, | ||
], | ||
} | ||
} | ||
|
||
pub fn new2() -> Uuid { | ||
Uuid { | ||
bytes: [ | ||
0xF9, 0x16, 0x8C, 0x5E, 0xCE, 0xB2, 0x4F, 0xAB, 0xB6, 0xBF, 0x32, 0x9B, 0xF3, 0x9F, | ||
0xA1, 0xE4, | ||
], | ||
} | ||
} |