preliminary unit tests

This commit is contained in:
2021-05-24 00:11:58 +03:00
parent 2ec4c0629b
commit eb9f4d5400
4 changed files with 148 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
@@ -6,3 +6,13 @@ go_library(
importpath = "github.com/motiejus/code/undocker/lxcconfig",
visibility = ["//visibility:public"],
)
go_test(
name = "go_default_test",
srcs = ["lxcconfig_test.go"],
embed = [":go_default_library"],
deps = [
"@com_github_stretchr_testify//assert:go_default_library",
"@com_github_stretchr_testify//require:go_default_library",
],
)