mirror of
https://github.com/espressif/openthread.git
synced 2026-10-05 07:17:39 +00:00
[test] add code spell check and correct wrong spelling (#9066)
This commit is contained in:
@@ -234,7 +234,7 @@ void TestInPlaceAesCcmProcessing(void)
|
||||
|
||||
VerifyOrQuit(message->GetLength() == msgLength + kTagLength);
|
||||
|
||||
// Decrpt in place
|
||||
// Decrypt in place
|
||||
aesCcm.Init(kHeaderLength, msgLength - kHeaderLength, kTagLength, kNonce, sizeof(kNonce));
|
||||
aesCcm.Header(header);
|
||||
aesCcm.Payload(*message, kHeaderLength, msgLength - kHeaderLength, ot::Crypto::AesCcm::kDecrypt);
|
||||
|
||||
@@ -1258,7 +1258,7 @@ void TestDnsTxtEntry(void)
|
||||
const uint8_t kInvalidEncodedTxt1[] = {4, 'a', '=', 'b'}; // Incorrect length
|
||||
|
||||
// Special encoded txt data with zero strings and string starting
|
||||
// with '=' (missing key) whcih should be skipped over silently.
|
||||
// with '=' (missing key) which should be skipped over silently.
|
||||
const uint8_t kSpecialEncodedTxt[] = {0, 0, 3, 'A', '=', 'B', 2, '=', 'C', 3, 'D', '=', 'E', 3, '=', '1', '2'};
|
||||
|
||||
const Dns::TxtEntry kTxtEntries[] = {
|
||||
|
||||
@@ -588,7 +588,7 @@ void TestDnsClient(void)
|
||||
VerifyOrQuit(sBrowseInfo.mNumInstances == 1);
|
||||
|
||||
sBrowseInfo.Reset();
|
||||
Log("Browse() for unknwon service");
|
||||
Log("Browse() for unknown service");
|
||||
SuccessOrQuit(dnsClient->Browse("_unknown._udp.default.service.arpa.", BrowseCallback, sInstance));
|
||||
AdvanceTime(100);
|
||||
VerifyOrQuit(sBrowseInfo.mCallbackCount == 1);
|
||||
|
||||
@@ -57,7 +57,7 @@ enum
|
||||
#define MAX_RSS(_rss1, _rss2) (((_rss1) < (_rss2)) ? (_rss2) : (_rss1))
|
||||
#define ABS(value) (((value) >= 0) ? (value) : -(value))
|
||||
|
||||
// This struct contains RSS values and test data for checking link quality info calss.
|
||||
// This struct contains RSS values and test data for checking link quality info class.
|
||||
struct RssTestData
|
||||
{
|
||||
const int8_t *mRssList; // Array of RSS values.
|
||||
|
||||
@@ -277,7 +277,7 @@ static const uint8_t sTestPayloadDefault[] = {0x80, 0x00, 0x01, 0x02, 0x03, 0x04
|
||||
|
||||
static void TestFullyCompressableLongAddresses(void)
|
||||
{
|
||||
TestIphcVector testVector("Fully compressable IPv6 addresses using long MAC addresses");
|
||||
TestIphcVector testVector("Fully compressible IPv6 addresses using long MAC addresses");
|
||||
|
||||
// Setup MAC addresses.
|
||||
testVector.SetMacSource(sTestMacSourceDefaultLong);
|
||||
@@ -302,7 +302,7 @@ static void TestFullyCompressableLongAddresses(void)
|
||||
|
||||
static void TestFullyCompressableShortAddresses(void)
|
||||
{
|
||||
TestIphcVector testVector("Fully compressable IPv6 addresses using short MAC addresses");
|
||||
TestIphcVector testVector("Fully compressible IPv6 addresses using short MAC addresses");
|
||||
|
||||
// Setup MAC addresses.
|
||||
testVector.SetMacSource(sTestMacSourceDefaultShort);
|
||||
@@ -327,7 +327,7 @@ static void TestFullyCompressableShortAddresses(void)
|
||||
|
||||
static void TestFullyCompressableShortLongAddresses(void)
|
||||
{
|
||||
TestIphcVector testVector("Fully compressable IPv6 addresses using short and long MAC addresses");
|
||||
TestIphcVector testVector("Fully compressible IPv6 addresses using short and long MAC addresses");
|
||||
|
||||
// Setup MAC addresses.
|
||||
testVector.SetMacSource(sTestMacSourceDefaultShort);
|
||||
@@ -352,7 +352,7 @@ static void TestFullyCompressableShortLongAddresses(void)
|
||||
|
||||
static void TestFullyCompressableLongShortAddresses(void)
|
||||
{
|
||||
TestIphcVector testVector("Fully compressable IPv6 addresses using long and short MAC addresses");
|
||||
TestIphcVector testVector("Fully compressible IPv6 addresses using long and short MAC addresses");
|
||||
|
||||
// Setup MAC addresses.
|
||||
testVector.SetMacSource(sTestMacSourceDefaultLong);
|
||||
@@ -505,7 +505,7 @@ static void TestSource16bitDestination16bitAddresses(void)
|
||||
|
||||
static void TestSourceCompressedDestination16bitAddresses(void)
|
||||
{
|
||||
TestIphcVector testVector("Fully compressable IPv6 source and destination 16-bit using long MAC addresses");
|
||||
TestIphcVector testVector("Fully compressible IPv6 source and destination 16-bit using long MAC addresses");
|
||||
|
||||
// Setup MAC addresses.
|
||||
testVector.SetMacSource(sTestMacSourceDefaultLong);
|
||||
@@ -530,7 +530,7 @@ static void TestSourceCompressedDestination16bitAddresses(void)
|
||||
|
||||
static void TestSourceCompressedDestination128bitAddresses(void)
|
||||
{
|
||||
TestIphcVector testVector("Fully compressable IPv6 source and destination inline using long MAC addresses");
|
||||
TestIphcVector testVector("Fully compressible IPv6 source and destination inline using long MAC addresses");
|
||||
|
||||
// Setup MAC addresses.
|
||||
testVector.SetMacSource(sTestMacSourceDefaultLong);
|
||||
@@ -734,7 +734,7 @@ static void TestStatefulSource16bitDestination16bitContext0(void)
|
||||
|
||||
static void TestStatefulCompressableLongAddressesContext0(void)
|
||||
{
|
||||
TestIphcVector testVector("Stateful compression compressable long addresses, context 0");
|
||||
TestIphcVector testVector("Stateful compression compressible long addresses, context 0");
|
||||
|
||||
// Setup MAC addresses.
|
||||
testVector.SetMacSource(sTestMacSourceDefaultLong);
|
||||
@@ -759,7 +759,7 @@ static void TestStatefulCompressableLongAddressesContext0(void)
|
||||
|
||||
static void TestStatefulCompressableShortAddressesContext0(void)
|
||||
{
|
||||
TestIphcVector testVector("Stateful compression compressable short addresses, context 0");
|
||||
TestIphcVector testVector("Stateful compression compressible short addresses, context 0");
|
||||
|
||||
// Setup MAC addresses.
|
||||
testVector.SetMacSource(sTestMacSourceDefaultShort);
|
||||
@@ -784,7 +784,7 @@ static void TestStatefulCompressableShortAddressesContext0(void)
|
||||
|
||||
static void TestStatefulCompressableLongShortAddressesContext0(void)
|
||||
{
|
||||
TestIphcVector testVector("Stateful compression compressable long and short addresses, context 0");
|
||||
TestIphcVector testVector("Stateful compression compressible long and short addresses, context 0");
|
||||
|
||||
// Setup MAC addresses.
|
||||
testVector.SetMacSource(sTestMacSourceDefaultLong);
|
||||
|
||||
@@ -310,7 +310,7 @@ void TestEncoder(void)
|
||||
printf(" -- PASS\n");
|
||||
|
||||
printf("\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
|
||||
printf("\nTest 5: Test saving position and reseting back to a saved position");
|
||||
printf("\nTest 5: Test saving position and resetting back to a saved position");
|
||||
|
||||
SuccessOrQuit(encoder.BeginFrame(Spinel::Buffer::kPriorityLow));
|
||||
SuccessOrQuit(encoder.WriteUint8(kUint8));
|
||||
|
||||
@@ -507,7 +507,7 @@ template <typename TimerType> static void TenTimers(uint32_t aTimeShift)
|
||||
}
|
||||
|
||||
// given the order in which timers are started, the TimerScheduler should call otPlatAlarmMilliStartAt 2 times.
|
||||
// one for timer[0] and one for timer[5] which will supercede timer[0].
|
||||
// one for timer[0] and one for timer[5] which will supersede timer[0].
|
||||
VerifyOrQuit(sCallCount[kCallCountIndexAlarmStart] == 2, "TestTenTimer: Start CallCount Failed.");
|
||||
VerifyOrQuit(sCallCount[kCallCountIndexAlarmStop] == 0, "TestTenTimer: Stop CallCount Failed.");
|
||||
VerifyOrQuit(sCallCount[kCallCountIndexTimerHandler] == 0, "TestTenTimer: Handler CallCount Failed.");
|
||||
|
||||
Reference in New Issue
Block a user