Skip to content

Commit 7767366

Browse files
authored
fix cspell issues in tests (#6348)
1 parent c1381f8 commit 7767366

File tree

4 files changed

+35
-31
lines changed

4 files changed

+35
-31
lines changed

cspell.config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ ignorePaths:
66
- docs/**/*.puml
77
- cmake/**
88
- LICENSE.md
9+
- src/test/app/wasm_fixtures/**/*.wat
10+
- src/test/app/wasm_fixtures/*.c
911
language: en
1012
allowCompoundWords: true # TODO (#6334)
1113
ignoreRandomStrings: true
@@ -59,6 +61,7 @@ words:
5961
- Britto
6062
- Btrfs
6163
- canonicality
64+
- cdylib
6265
- changespq
6366
- checkme
6467
- choco

src/test/app/Wasm_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ struct Wasm_test : public beast::unit_test::suite
229229
Bytes outb;
230230
outb.resize(1024);
231231

232-
auto const minsz = std::min(static_cast<std::uint32_t>(512), static_cast<std::uint32_t>(b58WasmHex.size()));
233-
auto const s = std::string_view(b58WasmHex.c_str(), minsz);
232+
auto const minSize = std::min(static_cast<std::uint32_t>(512), static_cast<std::uint32_t>(b58WasmHex.size()));
233+
auto const s = std::string_view(b58WasmHex.c_str(), minSize);
234234

235235
auto const re = engine.run(b58Wasm, "b58enco", wasmParams(outb, s));
236236

@@ -802,7 +802,7 @@ struct Wasm_test : public beast::unit_test::suite
802802
std::shared_ptr<HostFunctions> hfs(new TestHostFunctions(env, 0));
803803
auto imports = createWasmImport(*hfs);
804804

805-
{ // Calls float_from_uint with bad aligment.
805+
{ // Calls float_from_uint with bad alignment.
806806
// Can be checked through codecov
807807
auto& engine = WasmEngine::instance();
808808

src/test/app/wasm_fixtures/codecov_tests/src/lib.rs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -564,13 +564,13 @@ pub extern "C" fn finish() -> i32 {
564564
"amm_keylet_len_wrong_non_xrp_currency_len",
565565
)
566566
});
567-
let xrpissue: &[u8] = &[0; 40]; // 40 bytes
567+
let xrp_issue: &[u8] = &[0; 40]; // 40 bytes
568568
with_buffer::<32, _, _>(|ptr, len| {
569569
check_result(
570570
unsafe {
571571
host::amm_keylet(
572-
xrpissue.as_ptr(),
573-
xrpissue.len(),
572+
xrp_issue.as_ptr(),
573+
xrp_issue.len(),
574574
asset1_bytes.as_ptr(),
575575
asset1_bytes.len(),
576576
ptr,
@@ -1265,7 +1265,7 @@ pub extern "C" fn finish() -> i32 {
12651265
check_result(
12661266
unsafe { host::account_keylet(locator.as_ptr(), locator.len(), ptr, len) },
12671267
error_codes::INVALID_PARAMS,
1268-
"account_keylet_wrong_size_accountid",
1268+
"account_keylet_wrong_size_account_id",
12691269
)
12701270
});
12711271
let seq: i32 = 1;
@@ -1283,7 +1283,7 @@ pub extern "C" fn finish() -> i32 {
12831283
)
12841284
},
12851285
error_codes::INVALID_PARAMS,
1286-
"check_keylet_wrong_size_accountid",
1286+
"check_keylet_wrong_size_account_id",
12871287
)
12881288
});
12891289
with_buffer::<2, _, _>(|ptr, len| {
@@ -1301,7 +1301,7 @@ pub extern "C" fn finish() -> i32 {
13011301
)
13021302
},
13031303
error_codes::INVALID_PARAMS,
1304-
"credential_keylet_wrong_size_accountid1",
1304+
"credential_keylet_wrong_size_account_id1",
13051305
)
13061306
});
13071307
with_buffer::<2, _, _>(|ptr, len| {
@@ -1319,7 +1319,7 @@ pub extern "C" fn finish() -> i32 {
13191319
)
13201320
},
13211321
error_codes::INVALID_PARAMS,
1322-
"credential_keylet_wrong_size_accountid2",
1322+
"credential_keylet_wrong_size_account_id2",
13231323
)
13241324
});
13251325
with_buffer::<2, _, _>(|ptr, len| {
@@ -1335,7 +1335,7 @@ pub extern "C" fn finish() -> i32 {
13351335
)
13361336
},
13371337
error_codes::INVALID_PARAMS,
1338-
"delegate_keylet_wrong_size_accountid1",
1338+
"delegate_keylet_wrong_size_account_id1",
13391339
)
13401340
});
13411341
with_buffer::<2, _, _>(|ptr, len| {
@@ -1351,7 +1351,7 @@ pub extern "C" fn finish() -> i32 {
13511351
)
13521352
},
13531353
error_codes::INVALID_PARAMS,
1354-
"delegate_keylet_wrong_size_accountid2",
1354+
"delegate_keylet_wrong_size_account_id2",
13551355
)
13561356
});
13571357
with_buffer::<2, _, _>(|ptr, len| {
@@ -1367,7 +1367,7 @@ pub extern "C" fn finish() -> i32 {
13671367
)
13681368
},
13691369
error_codes::INVALID_PARAMS,
1370-
"deposit_preauth_keylet_wrong_size_accountid1",
1370+
"deposit_preauth_keylet_wrong_size_account_id1",
13711371
)
13721372
});
13731373
with_buffer::<2, _, _>(|ptr, len| {
@@ -1383,14 +1383,14 @@ pub extern "C" fn finish() -> i32 {
13831383
)
13841384
},
13851385
error_codes::INVALID_PARAMS,
1386-
"deposit_preauth_keylet_wrong_size_accountid2",
1386+
"deposit_preauth_keylet_wrong_size_account_id2",
13871387
)
13881388
});
13891389
with_buffer::<2, _, _>(|ptr, len| {
13901390
check_result(
13911391
unsafe { host::did_keylet(locator.as_ptr(), locator.len(), ptr, len) },
13921392
error_codes::INVALID_PARAMS,
1393-
"did_keylet_wrong_size_accountid",
1393+
"did_keylet_wrong_size_account_id",
13941394
)
13951395
});
13961396
with_buffer::<2, _, _>(|ptr, len| {
@@ -1406,7 +1406,7 @@ pub extern "C" fn finish() -> i32 {
14061406
)
14071407
},
14081408
error_codes::INVALID_PARAMS,
1409-
"escrow_keylet_wrong_size_accountid",
1409+
"escrow_keylet_wrong_size_account_id",
14101410
)
14111411
});
14121412
with_buffer::<2, _, _>(|ptr, len| {
@@ -1424,7 +1424,7 @@ pub extern "C" fn finish() -> i32 {
14241424
)
14251425
},
14261426
error_codes::INVALID_PARAMS,
1427-
"line_keylet_wrong_size_accountid1",
1427+
"line_keylet_wrong_size_account_id1",
14281428
)
14291429
});
14301430
with_buffer::<2, _, _>(|ptr, len| {
@@ -1442,7 +1442,7 @@ pub extern "C" fn finish() -> i32 {
14421442
)
14431443
},
14441444
error_codes::INVALID_PARAMS,
1445-
"line_keylet_wrong_size_accountid2",
1445+
"line_keylet_wrong_size_account_id2",
14461446
)
14471447
});
14481448
with_buffer::<2, _, _>(|ptr, len| {
@@ -1458,7 +1458,7 @@ pub extern "C" fn finish() -> i32 {
14581458
)
14591459
},
14601460
error_codes::INVALID_PARAMS,
1461-
"mpt_issuance_keylet_wrong_size_accountid",
1461+
"mpt_issuance_keylet_wrong_size_account_id",
14621462
)
14631463
});
14641464
with_buffer::<2, _, _>(|ptr, len| {
@@ -1474,7 +1474,7 @@ pub extern "C" fn finish() -> i32 {
14741474
)
14751475
},
14761476
error_codes::INVALID_PARAMS,
1477-
"mptoken_keylet_wrong_size_accountid",
1477+
"mptoken_keylet_wrong_size_account_id",
14781478
)
14791479
});
14801480
with_buffer::<2, _, _>(|ptr, len| {
@@ -1490,7 +1490,7 @@ pub extern "C" fn finish() -> i32 {
14901490
)
14911491
},
14921492
error_codes::INVALID_PARAMS,
1493-
"nft_offer_keylet_wrong_size_accountid",
1493+
"nft_offer_keylet_wrong_size_account_id",
14941494
)
14951495
});
14961496
with_buffer::<2, _, _>(|ptr, len| {
@@ -1506,7 +1506,7 @@ pub extern "C" fn finish() -> i32 {
15061506
)
15071507
},
15081508
error_codes::INVALID_PARAMS,
1509-
"offer_keylet_wrong_size_accountid",
1509+
"offer_keylet_wrong_size_account_id",
15101510
)
15111511
});
15121512
with_buffer::<2, _, _>(|ptr, len| {
@@ -1522,7 +1522,7 @@ pub extern "C" fn finish() -> i32 {
15221522
)
15231523
},
15241524
error_codes::INVALID_PARAMS,
1525-
"oracle_keylet_wrong_size_accountid",
1525+
"oracle_keylet_wrong_size_account_id",
15261526
)
15271527
});
15281528
with_buffer::<2, _, _>(|ptr, len| {
@@ -1540,7 +1540,7 @@ pub extern "C" fn finish() -> i32 {
15401540
)
15411541
},
15421542
error_codes::INVALID_PARAMS,
1543-
"paychan_keylet_wrong_size_accountid1",
1543+
"paychan_keylet_wrong_size_account_id1",
15441544
)
15451545
});
15461546
with_buffer::<2, _, _>(|ptr, len| {
@@ -1558,7 +1558,7 @@ pub extern "C" fn finish() -> i32 {
15581558
)
15591559
},
15601560
error_codes::INVALID_PARAMS,
1561-
"paychan_keylet_wrong_size_accountid2",
1561+
"paychan_keylet_wrong_size_account_id2",
15621562
)
15631563
});
15641564
with_buffer::<2, _, _>(|ptr, len| {
@@ -1574,14 +1574,14 @@ pub extern "C" fn finish() -> i32 {
15741574
)
15751575
},
15761576
error_codes::INVALID_PARAMS,
1577-
"permissioned_domain_keylet_wrong_size_accountid",
1577+
"permissioned_domain_keylet_wrong_size_account_id",
15781578
)
15791579
});
15801580
with_buffer::<2, _, _>(|ptr, len| {
15811581
check_result(
15821582
unsafe { host::signers_keylet(locator.as_ptr(), locator.len(), ptr, len) },
15831583
error_codes::INVALID_PARAMS,
1584-
"signers_keylet_wrong_size_accountid",
1584+
"signers_keylet_wrong_size_account_id",
15851585
)
15861586
});
15871587
with_buffer::<2, _, _>(|ptr, len| {
@@ -1597,7 +1597,7 @@ pub extern "C" fn finish() -> i32 {
15971597
)
15981598
},
15991599
error_codes::INVALID_PARAMS,
1600-
"ticket_keylet_wrong_size_accountid",
1600+
"ticket_keylet_wrong_size_account_id",
16011601
)
16021602
});
16031603
with_buffer::<2, _, _>(|ptr, len| {
@@ -1613,7 +1613,7 @@ pub extern "C" fn finish() -> i32 {
16131613
)
16141614
},
16151615
error_codes::INVALID_PARAMS,
1616-
"vault_keylet_wrong_size_accountid",
1616+
"vault_keylet_wrong_size_account_id",
16171617
)
16181618
});
16191619
let uint256: &[u8] = b"00000000000000000000000000000001";
@@ -1630,7 +1630,7 @@ pub extern "C" fn finish() -> i32 {
16301630
)
16311631
},
16321632
error_codes::INVALID_PARAMS,
1633-
"get_nft_wrong_size_accountid",
1633+
"get_nft_wrong_size_account_id",
16341634
)
16351635
});
16361636
check_result(
@@ -1643,7 +1643,7 @@ pub extern "C" fn finish() -> i32 {
16431643
)
16441644
},
16451645
error_codes::INVALID_PARAMS,
1646-
"trace_account_wrong_size_accountid",
1646+
"trace_account_wrong_size_account_id",
16471647
);
16481648

16491649
// invalid Currency was already tested above

src/test/app/wasm_fixtures/copyFixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# cspell: disable
12
import os
23
import sys
34
import subprocess

0 commit comments

Comments
 (0)