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

Node accessor renames #27

Merged
merged 3 commits into from
Aug 12, 2019
Merged

Node accessor renames #27

merged 3 commits into from
Aug 12, 2019

Conversation

warpfork
Copy link
Collaborator

@warpfork warpfork commented Aug 12, 2019

Addresses #22 .


This changes some exported symbols! To follow this refactor:

sed s/TraverseField/LookupString/g
sed s/TraverseIndex/LookupIndex/g

The textual update should be sufficient -- semantics are the same.

These have been just slightly out of style for a while now.

(In particular, allusions to numeric-keyed maps are removed.
While these are still considered a potential "someday" subject rather
than fully ruled out, it's also certainly not a *present* feature;
until something changes on this front, better not to advertise it.)

Signed-off-by: Eric Myhre <[email protected]>
Most important things first!  To follow this refactor:

```
sed s/TraverseField/LookupString/g
sed s/TraverseIndex/LookupIndex/g
```

It is *literally* a sed-refactor in complexity.

---

Now, details.

This has been pending for a while, and there is some discussion in
#22 .

In short, "Traversal" seemed like a mouthful;
"Field" was always a misnomer here;
and we've discovered several other methods that we *should* have
in the area as well, which necessitated a thought about placement.

In this commit, only the renames are applied, but you can also see
the outlines of two new methods in the Node interface, as comments.
These will be added in future commits.

Signed-off-by: Eric Myhre <[email protected]>
@codecov
Copy link

codecov bot commented Aug 12, 2019

Codecov Report

Merging #27 into master will not change coverage.
The diff coverage is 70.46%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #27   +/-   ##
======================================
  Coverage    56.2%   56.2%           
======================================
  Files          37      37           
  Lines        1783    1783           
======================================
  Hits         1002    1002           
  Misses        691     691           
  Partials       90      90
Impacted Files Coverage Δ
schema/gen/go/gen.go 100% <ø> (ø) ⬆️
impl/free/justString.go 0% <0%> (ø) ⬆️
thunks.go 0% <0%> (ø) ⬆️
traversal/selector/exploreRange.go 90.91% <100%> (ø) ⬆️
traversal/selector/exploreFields.go 92.6% <100%> (ø) ⬆️
schema/gen/go/genKindStruct.go 100% <100%> (ø) ⬆️
traversal/traverse.go 70% <100%> (ø) ⬆️
traversal/selector/exploreAll.go 100% <100%> (ø) ⬆️
traversal/selector/exploreRecursive.go 87.7% <100%> (ø) ⬆️
schema/gen/go/genCommon.go 100% <100%> (ø) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2656489...40bacb4. Read the comment docs.

@warpfork warpfork merged commit 0f998d4 into master Aug 12, 2019
@warpfork warpfork deleted the node-accessor-renames branch August 12, 2019 09:51
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.

1 participant