constellation/debugd/internal/filetransfer/BUILD.bazel
2024-02-08 14:20:01 +00:00

35 lines
904 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "filetransfer",
srcs = [
"chunkstream.go",
"filetransfer.go",
],
importpath = "github.com/edgelesssys/constellation/v2/debugd/internal/filetransfer",
visibility = ["//debugd:__subpackages__"],
deps = [
"//debugd/internal/debugd",
"//debugd/internal/filetransfer/streamer",
"//debugd/service",
],
)
go_test(
name = "filetransfer_test",
srcs = [
"chunkstream_test.go",
"filetransfer_test.go",
],
embed = [":filetransfer"],
deps = [
"//debugd/internal/filetransfer/streamer",
"//debugd/service",
"//internal/logger",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
],
)