Serge Bazanski | 8ef457f | 2021-07-11 14:42:38 +0000 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") |
| 2 | |
| 3 | go_library( |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 4 | name = "calendar", |
Serge Bazanski | 8ef457f | 2021-07-11 14:42:38 +0000 | [diff] [blame] | 5 | srcs = [ |
Serge Bazanski | 8ef457f | 2021-07-11 14:42:38 +0000 | [diff] [blame] | 6 | "event.go", |
Serge Bazanski | 11b276d | 2021-07-11 23:49:55 +0000 | [diff] [blame] | 7 | "load.go", |
Serge Bazanski | 8ef457f | 2021-07-11 14:42:38 +0000 | [diff] [blame] | 8 | "time.go", |
| 9 | ], |
| 10 | importpath = "code.hackerspace.pl/hscloud/hswaw/site/calendar", |
Serge Bazanski | 11b276d | 2021-07-11 23:49:55 +0000 | [diff] [blame] | 11 | visibility = ["//hswaw/site:__subpackages__"], |
Serge Bazanski | 8ef457f | 2021-07-11 14:42:38 +0000 | [diff] [blame] | 12 | deps = [ |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 13 | "@com_github_arran4_golang_ical//:golang-ical", |
| 14 | "@com_github_golang_glog//:glog", |
Serge Bazanski | 8ef457f | 2021-07-11 14:42:38 +0000 | [diff] [blame] | 15 | ], |
| 16 | ) |
| 17 | |
| 18 | go_test( |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 19 | name = "calendar_test", |
Serge Bazanski | 8ef457f | 2021-07-11 14:42:38 +0000 | [diff] [blame] | 20 | srcs = [ |
| 21 | "event_test.go", |
| 22 | "load_test.go", |
| 23 | ], |
| 24 | data = [ |
| 25 | ":test.ical", |
| 26 | ], |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 27 | embed = [":calendar"], |
| 28 | deps = ["@com_github_google_go_cmp//cmp"], |
Serge Bazanski | 8ef457f | 2021-07-11 14:42:38 +0000 | [diff] [blame] | 29 | ) |