kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/go/util/vnameutil/BUILD (about)

     1  # gazelle:go_test file
     2  load("//:visibility.bzl", "PUBLIC_VISIBILITY")
     3  load("//tools:build_rules/shims.bzl", "go_library", "go_test")
     4  
     5  package(default_visibility = ["//kythe:default_visibility"])
     6  
     7  go_library(
     8      name = "vnameutil",
     9      srcs = [
    10          "order.go",
    11          "rewrite.go",
    12      ],
    13      importpath = "kythe.io/kythe/go/util/vnameutil",
    14      visibility = [PUBLIC_VISIBILITY],
    15      deps = [
    16          "//kythe/proto:storage_go_proto",
    17          "@org_golang_google_protobuf//encoding/protojson",
    18          "@org_golang_google_protobuf//proto",
    19      ],
    20  )
    21  
    22  go_test(
    23      name = "rewrite_test",
    24      size = "small",
    25      srcs = ["rewrite_test.go"],
    26      library = ":vnameutil",
    27      deps = [
    28          "//kythe/proto:storage_go_proto",
    29          "@com_github_google_go_cmp//cmp",
    30          "@com_github_google_go_cmp//cmp/cmpopts",
    31          "@org_golang_google_protobuf//proto",
    32      ],
    33  )
    34  
    35  go_test(
    36      name = "order_test",
    37      size = "small",
    38      srcs = ["order_test.go"],
    39      library = ":vnameutil",
    40      deps = ["//kythe/proto:storage_go_proto"],
    41  )
    42  
    43  # A driver program for testing vname rewrite rule sets.
    44  alias(
    45      name = "test_vname_rules",
    46      actual = "//kythe/go/util/vnameutil/test",
    47  )