Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark and Test LinkParser #4436

Merged
merged 3 commits into from
Apr 2, 2023
Merged

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Mar 6, 2023

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

The link parser didn't have any tests and wasn't benchmarked until now. I also fixed the benchmark not compiling, since it's not really tested to compile in CI.

I want to make some modifications to the link parser in the future (mainly remove the use of goto) and want to make sure it stays "correct".

If #4417 gets merged before this, I'll need to add benchmark as an optional requirement here.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

benchmarks/src/Highlights.cpp Show resolved Hide resolved
benchmarks/src/LinkParser.cpp Show resolved Hide resolved
benchmarks/src/LinkParser.cpp Show resolved Hide resolved
benchmarks/src/LinkParser.cpp Show resolved Hide resolved
benchmarks/src/LinkParser.cpp Show resolved Hide resolved
benchmarks/src/LinkParser.cpp Show resolved Hide resolved
@pajlada pajlada enabled auto-merge (squash) April 2, 2023 14:27
@pajlada pajlada merged commit bdab5e0 into Chatterino:master Apr 2, 2023
@Nerixyz Nerixyz deleted the test/link-parser branch April 2, 2023 15:03
@Nerixyz Nerixyz mentioned this pull request Apr 3, 2023
1 task
@Nerixyz Nerixyz mentioned this pull request Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants