MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / join_token_parses

Function join_token_parses

nodedb/src/ctl/dispatch.rs:373–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

371
372 #[test]
373 fn join_token_parses() {
374 let result = parse_subcommand(&args(&[
375 "join-token",
376 "--create",
377 "--data-dir",
378 "/data",
379 "--for-node",
380 "7",
381 ]));
382 assert!(matches!(
383 result,
384 Ok(Some(Subcommand::JoinTokenCreate { for_node: 7, .. }))
385 ));
386 }
387
388 // Config file path passes through as Ok(None)
389 #[test]

Callers

nothing calls this directly

Calls 2

parse_subcommandFunction · 0.85
argsFunction · 0.85

Tested by

no test coverage detected