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

ListFormatter handles selector name "Index" in IEnumerable and IList #314

Merged
merged 1 commit into from
Sep 18, 2022

Conversation

axunonb
Copy link
Member

@axunonb axunonb commented Sep 18, 2022

Fixes #313 for ListFormatter:
In v1.6.1 a Selector was tested for having the name "index", even if data was not an IList, and returned the CollectionIndex. This is now implemented again in the ListFormatter.TryEvaluateSelector(...)

In v1.6.1 a Selector was tested for having the name "index", even if data was not an IList.

This is now implemented again in the ListFormatter.TryEvaluateSelector(...)
@codecov
Copy link

codecov bot commented Sep 18, 2022

Codecov Report

Base: 96% // Head: 96% // No change to project coverage 👍

Coverage data is based on head (c2f9da1) compared to base (70d2cbd).
Patch coverage: 100% of modified lines in pull request are covered.

Additional details and impacted files
@@         Coverage Diff         @@
##           main   #314   +/-   ##
===================================
  Coverage    96%    96%           
===================================
  Files        91     91           
  Lines      3186   3186           
===================================
  Hits       3070   3070           
  Misses      116    116           
Impacted Files Coverage Δ
src/SmartFormat/Extensions/ReflectionSource.cs 100% <ø> (ø)
src/SmartFormat/Extensions/ListFormatter.cs 98% <100%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@axunonb axunonb merged commit 9c1188e into axuno:main Sep 18, 2022
@axunonb axunonb deleted the pr-index-selector-name branch September 18, 2022 20:25
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.

Index selector does not work for IEnumerables
1 participant