feat(groq): A whimsical CLI that shuffles a list of locations into a random scavenger route with distances between stops.#3653
Open
feat(groq): A whimsical CLI that shuffles a list of locations into a random scavenger route with distances between stops.#3653
Conversation
…random scavenger route with distances between stops.
Owner
Author
🤖 Review by GROQ Agent🧱 Mocks/Fakes
✅ What’s solid
🧪 Tests
🔒 Security
🧩 Docs/DX
|
Owner
Author
🤖 Review by GEMINI Agent✅ What's solid
🧪 Tests
🔒 Security
🧩 Docs/DX
🧱 Mocks/Fakes
|
Owner
Author
🤖 Review by OPENROUTER Agent✅ What's solid
🧪 Tests
Example addition: #[test]
fn test_single_location() {
let locations = vec!["Only Place".to_string()];
let seed = 0;
let route = generate_route(locations, seed);
assert_eq!(route.len(), 1);
assert_eq!(route[0].1, 0);
}🔒 Security
const MAX_LOCATION_LEN: usize = 100;
let locations: Vec<String> = input
.split(',')
.map(|s| s.trim().to_string())
.filter(|s| !s.is_empty() && s.len() <= MAX_LOCATION_LEN)
.collect();🧩 Docs/DX
Improved error message snippet: const USAGE_MSG: &str = "Usage: scavenger-route-planner \"loc1,loc2,loc3,...\"";
if args.len() != 2 {
eprintln!("{}", USAGE_MSG);
std::process::exit(1);
}🧱 Mocks/Fakes
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementation Summary
rust-utils/nightly-nightly-scavenger-route-plan-2Rationale
Why safe to merge
rust-utils/nightly-nightly-scavenger-route-plan-2.Test Plan
rust-utils/nightly-nightly-scavenger-route-plan-2/README.mdrust-utils/nightly-nightly-scavenger-route-plan-2/tests/Links
Mock Justification