mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:51:50 +00:00
27 lines
667 B
Python
27 lines
667 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
# gazelle:exclude testdata
|
|
|
|
go_library(
|
|
name = "diff",
|
|
srcs = ["diff.go"],
|
|
importpath = "github.com/sourcegraph/sourcegraph/lib/codeintel/precise/diff",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//lib/codeintel/precise",
|
|
"@com_github_fatih_color//:color",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "diff_test",
|
|
srcs = ["diff_test.go"],
|
|
embed = [":diff"],
|
|
data = ["//lib/codeintel/precise/diff/testdata:data"],
|
|
deps = [
|
|
"//lib/codeintel/lsif/conversion",
|
|
"//lib/codeintel/precise",
|
|
"@com_github_hexops_autogold//:autogold",
|
|
],
|
|
)
|