github.com/adecaro/fabric-ca@v2.0.0-alpha+incompatible/lib/server/idemix/mocks/Clock.go (about)

     1  /*
     2  Copyright IBM Corp. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  // Code generated by mockery v1.0.0
     7  
     8  package mocks
     9  
    10  import mock "github.com/stretchr/testify/mock"
    11  import time "time"
    12  
    13  // Clock is an autogenerated mock type for the Clock type
    14  type Clock struct {
    15  	mock.Mock
    16  }
    17  
    18  // Now provides a mock function with given fields:
    19  func (_m *Clock) Now() time.Time {
    20  	ret := _m.Called()
    21  
    22  	var r0 time.Time
    23  	if rf, ok := ret.Get(0).(func() time.Time); ok {
    24  		r0 = rf()
    25  	} else {
    26  		r0 = ret.Get(0).(time.Time)
    27  	}
    28  
    29  	return r0
    30  }