Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
hunshcn committed May 10, 2024
1 parent 36cc806 commit 031e34f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gazelle/python/testdata/remove_invalid_library/BUILD.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
load("@rules_python//python:defs.bzl", "py_library")

py_library(
name = "remove_invalid_library",
srcs = ["__init__.py"],
visibility = ["//:__subpackages__"],
)
Empty file.
3 changes: 3 additions & 0 deletions gazelle/python/testdata/remove_invalid_library/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Remove invalid

This test case asserts that `py_library` should be deleted if invalid.
1 change: 1 addition & 0 deletions gazelle/python/testdata/remove_invalid_library/WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This is a Bazel workspace for the Gazelle test data.
15 changes: 15 additions & 0 deletions gazelle/python/testdata/remove_invalid_library/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2023 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---

0 comments on commit 031e34f

Please sign in to comment.