GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Isolate utility tests by nicholashanson · Pull Request #1090 · CrowCpp/Crow

Conversation

@nicholashanson

@nicholashanson nicholashanson commented Sep 15, 2025

Copy link
Copy Markdown
Contributor

Continued unittest.cpp refactoring by moving the six tests that depend only on the utility module into a separate test_utility.cpp.

Before refactor:

Filters: "base64","normalize_path","sanitize_filename","trim","string_equals","lexical_cast"
Randomness seeded to: 1289970712
===============================================================================
All tests passed (58 assertions in 6 test cases)

After refactor:

Filters: "base64","normalize_path","sanitize_filename","trim","string_equals","lexical_cast"
Randomness seeded to: 1628700200
===============================================================================
All tests passed (58 assertions in 6 test cases)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
nicholashanson added 2 commits September 15, 2025 15:40
@nicholashanson
Refactor routing_params test and isolate HTTP response tests
3a3660f
- Moved tests that depend solely on `crow::response` from unittest.cpp
  to tests/unit_tests/test_http_response.cpp for clearer separation of concerns.
- Renamed the original "simple_response_routing_params" test in
  unittest.cpp to "routing_params" to reflect this chage.
- Updated CMakeLists.txt to automatically include all sources under unit_tests/.
@nicholashanson
Utilty unit test refactor
10f4022
Isolated unit tests that depend only on the utility module into test_utility.cpp.
gittiver
gittiver requested changes Sep 16, 2025
View reviewed changes

@gittiver gittiver left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please replace globbing by explicit file listing

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread tests/CMakeLists.txt Resolved

Uh oh!

There was an error while loading. Please reload this page.

@gittiver
replaced globbing by explicit listing
bf1fc72
gittiver
gittiver approved these changes Sep 17, 2025
View reviewed changes
@gittiver
gittiver merged commit b818246 into CrowCpp:master Sep 17, 2025
@BrewTestBot BrewTestBot mentioned this pull request Oct 12, 2025
crow 1.3.0 Homebrew/homebrew-core#249131
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gittiver gittiver gittiver approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@nicholashanson @gittiver
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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.