From 1048673171f7eaf6d2df6fe1a69285e26923c02e Mon Sep 17 00:00:00 2001 From: Jim Date: Tue, 2 Jun 2020 12:07:00 -0400 Subject: [PATCH] update dbassert dep (#100) --- go.mod | 2 +- go.sum | 2 ++ internal/db/assert/asserts.go | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index d3c83a8908..0ab0c3f09c 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe github.com/golang/protobuf v1.4.2 github.com/grpc-ecosystem/grpc-gateway v1.14.6 - github.com/hashicorp/dbassert v0.0.0-20200601131634-c3045f4c81e8 + github.com/hashicorp/dbassert v0.0.0-20200602132714-30dfb78f0133 github.com/hashicorp/errwrap v1.0.0 github.com/hashicorp/go-alpnmux v0.0.0-20200513011953-0293f5d23c31 github.com/hashicorp/go-cleanhttp v0.5.1 diff --git a/go.sum b/go.sum index 5941b3ff4f..75f28d6f4c 100644 --- a/go.sum +++ b/go.sum @@ -577,6 +577,8 @@ github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyN github.com/hashicorp/consul/sdk v0.4.0/go.mod h1:fY08Y9z5SvJqevyZNy6WWPXiG3KwBPAvlcdx16zZ0fM= github.com/hashicorp/dbassert v0.0.0-20200601131634-c3045f4c81e8 h1:0R3FvnfT4FC2abVevODTZ22zzhguKM2K5aufuysG0oo= github.com/hashicorp/dbassert v0.0.0-20200601131634-c3045f4c81e8/go.mod h1:+B5eZq7vXqN4Gxkgjm4ub1bwG6OTcYzFL0r+bMvWorg= +github.com/hashicorp/dbassert v0.0.0-20200602132714-30dfb78f0133 h1:NT2GV/LkzarLLGLYf/+HdqazyFEuuGDA7tOZ2Jyo+80= +github.com/hashicorp/dbassert v0.0.0-20200602132714-30dfb78f0133/go.mod h1:+B5eZq7vXqN4Gxkgjm4ub1bwG6OTcYzFL0r+bMvWorg= github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-alpnmux v0.0.0-20200513011953-0293f5d23c31 h1:pxqI71/0R1WIASjQEJ9W9skCKYiREEkRoXFvHCZH1pg= diff --git a/internal/db/assert/asserts.go b/internal/db/assert/asserts.go index 214b564cbe..55d013eb80 100644 --- a/internal/db/assert/asserts.go +++ b/internal/db/assert/asserts.go @@ -31,20 +31,20 @@ func (a *DbAsserts) Log(enable bool) { // IsNull asserts that the resource fieldName is null in the db. func (a *DbAsserts) IsNull(resource interface{}, fieldName string) bool { - return a.asserts.FieldIsNull(resource, fieldName) + return a.asserts.IsNull(resource, fieldName) } // NotNull asserts that the resource fieldName is not null in the db. func (a *DbAsserts) NotNull(resource interface{}, fieldName string) bool { - return a.asserts.FieldNotNull(resource, fieldName) + return a.asserts.NotNull(resource, fieldName) } // Nullable asserts that the resource fieldName is nullable in the db. func (a *DbAsserts) Nullable(resource interface{}, fieldName string) bool { - return a.asserts.FieldNullable(resource, fieldName) + return a.asserts.Nullable(resource, fieldName) } // Domain asserts that the resource fieldName is the domainName in the db. func (a *DbAsserts) Domain(resource interface{}, fieldName, domainName string) bool { - return a.asserts.FieldDomain(resource, fieldName, domainName) + return a.asserts.Domain(resource, fieldName, domainName) }