Documentation ¶
Index ¶
- func TestGet(t *testing.T, vulnsrc Getter, args TestGetArgs)
- func TestUpdate(t *testing.T, vulnsrc Updater, args TestUpdateArgs)
- type Getter
- type GetterGetArgs
- type GetterGetExpectation
- type GetterGetReturns
- type MockGetter
- type MockUpdater
- type TestGetArgs
- type TestUpdateArgs
- type Updater
- type UpdaterUpdateArgs
- type UpdaterUpdateExpectation
- type UpdaterUpdateReturns
- type WantValues
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestUpdate ¶
func TestUpdate(t *testing.T, vulnsrc Updater, args TestUpdateArgs)
Types ¶
type GetterGetArgs ¶
type GetterGetArgs struct {
// contains filtered or unexported fields
}
type GetterGetExpectation ¶
type GetterGetExpectation struct { Args GetterGetArgs Returns GetterGetReturns }
type GetterGetReturns ¶
type GetterGetReturns struct {
// contains filtered or unexported fields
}
type MockGetter ¶
MockGetter is an autogenerated mock type for the Getter type
func (*MockGetter) ApplyGetExpectation ¶
func (_m *MockGetter) ApplyGetExpectation(e GetterGetExpectation)
func (*MockGetter) ApplyGetExpectations ¶
func (_m *MockGetter) ApplyGetExpectations(expectations []GetterGetExpectation)
type MockUpdater ¶
MockUpdater is an autogenerated mock type for the Updater type
func (*MockUpdater) ApplyUpdateExpectation ¶
func (_m *MockUpdater) ApplyUpdateExpectation(e UpdaterUpdateExpectation)
func (*MockUpdater) ApplyUpdateExpectations ¶
func (_m *MockUpdater) ApplyUpdateExpectations(expectations []UpdaterUpdateExpectation)
func (*MockUpdater) Update ¶
func (_m *MockUpdater) Update(dir string) error
Update provides a mock function with given fields: dir
type TestGetArgs ¶
type TestUpdateArgs ¶
type TestUpdateArgs struct { Dir string WantValues []WantValues WantErr string NoBuckets [][]string }
type UpdaterUpdateArgs ¶
type UpdaterUpdateExpectation ¶
type UpdaterUpdateExpectation struct { Args UpdaterUpdateArgs Returns UpdaterUpdateReturns }
type UpdaterUpdateReturns ¶
type UpdaterUpdateReturns struct {
Err error
}
type WantValues ¶
type WantValues struct { Key []string Value interface{} }
Click to show internal directories.
Click to hide internal directories.