This repository was archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathBUILD.bazel
More file actions
57 lines (55 loc) · 1.51 KB
/
BUILD.bazel
File metadata and controls
57 lines (55 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//dev:go_defs.bzl", "go_test")
go_library(
name = "search",
srcs = [
"diff_fetcher.go",
"diff_format.go",
"highlight.go",
"lazy_commit.go",
"match_tree.go",
"search.go",
],
importpath = "github.com/sourcegraph/sourcegraph/cmd/gitserver/internal/search",
tags = [TAG_PLATFORM_SOURCE],
visibility = ["//cmd/gitserver:__subpackages__"],
deps = [
"//internal/actor",
"//internal/api",
"//internal/authz",
"//internal/byteutils",
"//internal/gitserver/protocol",
"//internal/requestclient",
"//internal/search/casetransform",
"//internal/search/result",
"//lib/errors",
"@com_github_sourcegraph_go_diff//diff",
"@com_github_sourcegraph_log//:log",
"@org_golang_x_sync//errgroup",
],
)
go_test(
name = "search_test",
srcs = [
"diff_format_test.go",
"diff_test.go",
"match_tree_test.go",
"search_test.go",
],
data = glob(["testdata/**"]),
embed = [":search"],
embedsrcs = [
"testdata/large_diff.txt",
"testdata/small_diff.txt",
],
tags = [TAG_PLATFORM_SOURCE],
deps = [
"//internal/actor",
"//internal/authz",
"//internal/gitserver/protocol",
"//internal/search/result",
"//lib/errors",
"@com_github_sourcegraph_go_diff//diff",
"@com_github_stretchr_testify//require",
],
)