github.com/hxx258456/fabric-ca-gm@v0.0.3-0.20221111064038-a268ad7e3a37/lib/server/user/user_suite_test.go (about) 1 /* 2 Copyright IBM Corp. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package user_test 8 9 import ( 10 "testing" 11 12 . "github.com/onsi/ginkgo" 13 . "github.com/onsi/gomega" 14 ) 15 16 func TestUser(t *testing.T) { 17 RegisterFailHandler(Fail) 18 RunSpecs(t, "User Suite") 19 } 20 21 //go:generate counterfeiter -o mocks/result.go -fake-name Result . result 22 type result interface { 23 LastInsertId() (int64, error) 24 RowsAffected() (int64, error) 25 }