blob: d6cf99951e2eb5386db67140ffcbd8ba5c9c2f35 [file] [log] [blame]
# Copyright 2021 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/components/fuchsia_unittest_package.gni")
import("//build/fidl/fidl.gni")
import("//build/go/go_library.gni")
import("//build/go/go_test.gni")
import("//build/go/toolchain.gni")
go_library("gopkg") {
name = "go.fuchsia.dev/fuchsia/src/tests/fidl/go_bindings_test"
deps = [
":fidl.go.types($go_toolchain)",
"//third_party/golibs:github.com/google/go-cmp",
]
sources = [
"bits_test.go",
"enums_test.go",
"stringer_test.go",
"tables_test.go",
"unions_test.go",
]
}
go_test("fidl-go-bindings-test") {
gopackages = [ "go.fuchsia.dev/fuchsia/src/tests/fidl/go_bindings_test" ]
deps = [ ":gopkg" ]
}
fidl("fidl.go.types") {
sources = [ "types.test.fidl" ]
}
fuchsia_unittest_package("go_bindings_test") {
deps = [ ":fidl-go-bindings-test" ]
}