Skip to content

Commit 3e2992c

Browse files
committed
Refactor: delete 'test' in the name of tests, because is inncesary
1 parent fab7eb9 commit 3e2992c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/message/rdata/dnskey_rdata.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ mod dnskey_rdata_test{
213213
}
214214

215215
#[test]
216-
fn to_bytes_test(){
216+
fn to_bytes(){
217217
let dnskey_rdata = DnskeyRdata::new(1, 2, 3, vec![1,2]);
218218

219219
let bytes_test: Vec<u8> = vec![0, 1, 2, 3, 1, 2];
@@ -222,7 +222,7 @@ mod dnskey_rdata_test{
222222
}
223223

224224
#[test]
225-
fn from_bytes_test(){
225+
fn from_bytes(){
226226
let dnskey_rdata = DnskeyRdata::new(1, 2, 3, vec![1,2]);
227227

228228
let bytes_test: Vec<u8> = vec![0, 1, 2, 3, 1, 2];
@@ -233,7 +233,7 @@ mod dnskey_rdata_test{
233233
}
234234

235235
#[test]
236-
fn from_bytes_error_test(){
236+
fn from_bytes_error(){
237237
let bytes_test: Vec<u8> = vec![0, 1, 2, 3];
238238

239239
let result = DnskeyRdata::from_bytes(&bytes_test, &bytes_test);
@@ -242,7 +242,7 @@ mod dnskey_rdata_test{
242242
}
243243

244244
#[test]
245-
fn max_values_from_bytes_test(){
245+
fn max_values_from_bytes(){
246246
let mut dnskey_rdata = DnskeyRdata::new(0, 0, 0, Vec::new());
247247
//Max value of 2 bytes is 65535 (16 ones in the 2 bytes)
248248
dnskey_rdata.set_flags(65535);
@@ -261,7 +261,7 @@ mod dnskey_rdata_test{
261261
}
262262

263263
#[test]
264-
fn max_values_to_bytes_test(){
264+
fn max_values_to_bytes(){
265265
let mut dnskey_rdata = DnskeyRdata::new(0, 0, 0, Vec::new());
266266
//Max value of 2 bytes is 65535 (16 ones in the 2 bytes)
267267
dnskey_rdata.set_flags(65535);
@@ -275,7 +275,7 @@ mod dnskey_rdata_test{
275275
}
276276

277277
#[test]
278-
fn min_values_from_bytes_test(){
278+
fn min_values_from_bytes(){
279279
let mut dnskey_rdata = DnskeyRdata::new(0, 0, 0, Vec::new());
280280
dnskey_rdata.set_flags(0);
281281
dnskey_rdata.set_protocol(0);
@@ -293,7 +293,7 @@ mod dnskey_rdata_test{
293293
}
294294

295295
#[test]
296-
fn min_values_to_bytes_test(){
296+
fn min_values_to_bytes(){
297297
let mut dnskey_rdata = DnskeyRdata::new(0, 0, 0, Vec::new());
298298
dnskey_rdata.set_flags(0);
299299
dnskey_rdata.set_protocol(0);

0 commit comments

Comments
 (0)