Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add String::isEmpty()#220

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
aentinger merged 2 commits intoarduino:masterfromalranel:isempty
Nov 8, 2023
Merged

Add String::isEmpty()#220

aentinger merged 2 commits intoarduino:masterfromalranel:isempty
Nov 8, 2023

Conversation

alranel
Copy link
Contributor

This PR adds a tiny inlineisEmpty() method to the String class. This is borrowed from the ESP32 core which made it popular.

@codecov-commenter
Copy link

codecov-commenter commentedOct 31, 2023
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base(65633ce) 95.53% compared to head(2e5570e) 95.53%.

Additional details and impacted files
@@           Coverage Diff           @@##           master     #220   +/-   ##=======================================  Coverage   95.53%   95.53%           =======================================  Files          16       16             Lines        1075     1075           =======================================  Hits         1027     1027             Misses         48       48
FilesCoverage Δ
api/String.h90.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

Copy link
Contributor

@aentingeraentinger left a comment

Choose a reason for hiding this comment

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

Hi@alranel ☕ 👋

Two minor points:

  • Indendation does not match the rest of the file (probably a TAB vs SPACE issue?)
  • Please provide a unit test that hard-codes the API expectation for this function.

@alranel
Copy link
ContributorAuthor

Hi@aentinger!
Whoops, sorry for the bad indentation. I'm a spaces guy. Fixed, and unit test provided :)

@aentinger
Copy link
Contributor

I'm a spaces guy.

I'm a spaces guy myself but since there are tabs in that file ... 🤷 got-to-go with the flow I suppose 😁

alranel reacted with laugh emoji

Copy link
Contributor

@aentingeraentinger left a comment

Choose a reason for hiding this comment

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

Thank you for applying my suggestions! 🙇

@aentingeraentinger merged commitfc9a636 intoarduino:masterNov 8, 2023
@alranelalranel deleted the isempty branchNovember 9, 2023 09:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@aentingeraentingeraentinger approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@alranel@codecov-commenter@aentinger

[8]ページ先頭

©2009-2025 Movatter.jp