mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-11-05 05:37:33 +00:00
Make uf2reset available across nRF52 CLI roles
This commit is contained in:
1 parent
a8cf4fd12f
commit
69d9d9e62a
14 files changed
+154
-34
No files matched your search
@@ -719,6 +719,15 @@ TEST(CLICommandUtils, MatchesDiscoverNeighborsWithoutPrefixCollisions) {
|
||||
"discover.neighbors.extra", "discover.neighbors"));
|
||||
}
|
||||
|
||||
TEST(CLICommandUtils, MatchesOnlyACompleteUf2ResetCommand) {
|
||||
EXPECT_TRUE(mesh::cli::isUf2ResetCommand("uf2reset"));
|
||||
EXPECT_TRUE(mesh::cli::isUf2ResetCommand("uf2reset "));
|
||||
EXPECT_FALSE(mesh::cli::isUf2ResetCommand("uf2reset now"));
|
||||
EXPECT_FALSE(mesh::cli::isUf2ResetCommand("uf2reset.extra"));
|
||||
EXPECT_FALSE(mesh::cli::isUf2ResetCommand("uf2"));
|
||||
EXPECT_FALSE(mesh::cli::isUf2ResetCommand(nullptr));
|
||||
}
|
||||
|
||||
TEST(CLICommandUtils, ParsesRecentRepeaterListAndPageQueries) {
|
||||
using mesh::cli::RecentRepeaterGetMatch;
|
||||
mesh::cli::RecentRepeaterGetQuery query;
|
||||
|
||||
Reference in new issue
Block a user