prysm-pulse/shared/slices/BUILD.bazel
ratikesh9 99def96cc2 Generic Slices library to support different data types (#1219)
* Generic Slices library to support different data types
** Main module added under slice_generic.go
** Test cases passing
** Modified Bazel Build accordingly to run test suite

* Periods added for the generic slice functions

* Build through gazelle & linter fixes

* Generic library using reflection for set operations

* Improvement in test cases including float 32

* Error Handling using generic error message for unsupported type

* Linter fixes and including more test cases

* Linter fixes

* Linter fixes in Errof function & increasing test coverage

* Test cases corrections

*  Benchmark test added for reflection & non reflection functions
Redundancy removed for various data type
Panic removed from the code & error handled

* documnet linter error removed

* Benchmark done with SSZ for reflection and non-reflection based functions

* Bazel build file updated

* gofmt & golinter error fixes

* Added data type support for uint32,int32,byte,int64,uint64

* Removed the redundant code and condition of error handled

* changes in linter & fixes

* Linter fixes

* Individual error handled for slices

* Removed unwanted variable t

* linter fixes

* Removed unwanted conditions

* linter & test cases fix

* Linter fixes in slice generic

* rebuilding with test
2019-01-13 15:57:39 +08:00

30 lines
675 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = [
"doc.go",
"slice.go",
"slice_generic.go",
],
importpath = "github.com/prysmaticlabs/prysm/shared/slices",
visibility = ["//visibility:public"],
)
go_test(
name = "go_default_test",
srcs = [
"slice_generic_test.go",
"slice_test.go",
],
embed = [":go_default_library"],
deps = ["//shared/ssz:go_default_library"],
)
go_test(
name = "go_generic_test",
srcs = ["slice_generic_test.go"],
embed = [":go_default_library"],
deps = ["//shared/ssz:go_default_library"],
)