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

#234 - fix: add logic to handle nil pointer structs #306

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

NithinGudla
Copy link
Contributor

This commit fixes the nil pointer structs.
If a struct pointer field is nil, it will be initialised first & then used for further processing.

Copy link

codecov bot commented Apr 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (3c53a9e) to head (8207696).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #306   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines          420       427    +7     
=========================================
+ Hits           420       427    +7     

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

@caarlos0 caarlos0 merged commit 0f77fef into caarlos0:main Apr 30, 2024
15 checks passed
@caarlos0
Copy link
Owner

amazing, thank you!

caarlos0 added a commit that referenced this pull request Jun 19, 2024
as it would automatically initialize nil pointers.

this retracts that version, and gate this new feature behind an `init`
tag option.

closes #317
refs  #306
caarlos0 added a commit that referenced this pull request Jun 19, 2024
* fix: retract v11.0.1, gate init nil pointers

as it would automatically initialize nil pointers.

this retracts that version, and gate this new feature behind an `init`
tag option.

closes #317
refs  #306

* test: make sure #310 is covered too

closes #310

* test: add test for multiple tag options

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: typo

* perf: cheap first

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
BorzdeG pushed a commit to BorzdeG/env that referenced this pull request Aug 24, 2024
BorzdeG pushed a commit to BorzdeG/env that referenced this pull request Aug 24, 2024
* fix: retract v11.0.1, gate init nil pointers

as it would automatically initialize nil pointers.

this retracts that version, and gate this new feature behind an `init`
tag option.

closes caarlos0#317
refs  caarlos0#306

* test: make sure caarlos0#310 is covered too

closes caarlos0#310

* test: add test for multiple tag options

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: typo

* perf: cheap first

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants