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

Split QualifiedNameProvider out from libcst.metadata.scope_provider #464

Merged
merged 3 commits into from
Mar 12, 2021

Conversation

zsol
Copy link
Member

@zsol zsol commented Mar 11, 2021

Summary

The provider is still available from libcst.metadata. I'm planning to add FullyQualifiedNameProvider to this file too.

Test Plan

New and existing tests.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 11, 2021
Comment on lines 1 to 2
# Copyright (c) Facebook, Inc. and its affiliates.
#
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a test_qualified_name_provider.py which is duplicated with this test_name_provider.py
We should consolidate and provide a better file naming.
https://github.com/Instagram/LibCST/blob/6731aa5d2940ce82dd221963b64a496955bfd07a/libcst/metadata/tests/test_qualified_name_provider.py

@codecov-io
Copy link

Codecov Report

Merging #464 (8221e76) into master (39ff458) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #464   +/-   ##
=======================================
  Coverage   94.64%   94.64%           
=======================================
  Files         233      234    +1     
  Lines       22708    22731   +23     
=======================================
+ Hits        21491    21514   +23     
  Misses       1217     1217           
Impacted Files Coverage Δ
libcst/metadata/scope_provider.py 96.48% <ø> (-0.14%) ⬇️
libcst/metadata/__init__.py 100.00% <100.00%> (ø)
libcst/metadata/name_provider.py 100.00% <100.00%> (ø)
libcst/metadata/tests/test_name_provider.py 100.00% <100.00%> (ø)

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 39ff458...8221e76. Read the comment docs.

@zsol zsol merged commit 507b453 into master Mar 12, 2021
@zsol zsol deleted the name-provider branch March 12, 2021 10:13
@zsol zsol mentioned this pull request Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants