File tree 3 files changed +19
-18
lines changed
packages/axum-http-tracker-server/src
3 files changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,6 @@ use serde::{Deserialize, Serialize};
307
307
308
308
pub mod container;
309
309
pub mod server;
310
- pub mod test_helpers;
311
310
pub mod v1;
312
311
313
312
pub const HTTP_TRACKER_LOG_TARGET : & str = "HTTP TRACKER" ;
@@ -318,3 +317,21 @@ pub enum Version {
318
317
/// The `v1` version of the HTTP tracker.
319
318
V1 ,
320
319
}
320
+
321
+ #[ cfg( test) ]
322
+ pub ( crate ) mod tests {
323
+
324
+ pub ( crate ) mod helpers {
325
+ use bittorrent_primitives:: info_hash:: InfoHash ;
326
+
327
+ /// # Panics
328
+ ///
329
+ /// Will panic if the string representation of the info hash is not a valid info hash.
330
+ #[ must_use]
331
+ pub fn sample_info_hash ( ) -> InfoHash {
332
+ "3b245504cf5f11bbdbe1201cea6a6bf45aee1bc0" // DevSkim: ignore DS173237
333
+ . parse :: < InfoHash > ( )
334
+ . expect ( "String should be a valid info hash" )
335
+ }
336
+ }
337
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ mod tests {
199
199
use torrust_tracker_configuration:: { Configuration , Core } ;
200
200
use torrust_tracker_test_helpers:: configuration;
201
201
202
- use crate :: test_helpers :: tests :: sample_info_hash;
202
+ use crate :: tests :: helpers :: sample_info_hash;
203
203
204
204
struct CoreTrackerServices {
205
205
pub core_config : Arc < Core > ,
You can’t perform that action at this time.
0 commit comments