Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

pkg/analysis/importalias: add tests #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ldez
Copy link

@ldez ldez commented Feb 27, 2021

Because tests are good 😸

@codecov
Copy link

codecov bot commented Feb 27, 2021

Codecov Report

Merging #8 (9092412) into main (00ba86c) will increase coverage by 83.95%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           main       #8       +/-   ##
=========================================
+ Coverage      0   83.95%   +83.95%     
=========================================
  Files         0        1        +1     
  Lines         0       81       +81     
=========================================
+ Hits          0       68       +68     
- Misses        0        8        +8     
- Partials      0        5        +5     
Impacted Files Coverage Δ
pkg/analysis/importalias/analyzer.go 83.95% <0.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 00ba86c...9092412. Read the comment docs.

package a

import (
// envoy_api_v2_auth "github.com/envoyproxy/go-control-plane/envoy/api/v2/auth"
Copy link
Author

Choose a reason for hiding this comment

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

The readme suggests that is a valid import but it doesn't work.

https://github.com/projectcontour/lint/blob/main/README.md#linters

Signed-off-by: Fernandez Ludovic <[email protected]>
Comment on lines +21 to +22
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" // want `alias "v1" uses words that are not in path "io/apimachinery/pkg/apis/meta/v1"`
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" // want `version "v1" not specified in alias "meta" for import path "k8s/io/apimachinery/pkg/apis/meta/v1"`
Copy link
Author

Choose a reason for hiding this comment

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

the suggestions can produce some duplicates

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant