mock

package
v0.0.0-...-cc4e71a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock is responsible for providing mocks for specific services used in the api.

Package mock is responsible for providing mocks for specific services used in the api.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket map[string][]byte

Bucket is local map to simulate S3 bucket in unit tests.

type DynamodbClient

type DynamodbClient struct {
	dynamodbiface.DynamoDBAPI
}

DynamodbClient Defines a mock struct to use as dynamo client in unit tests.

func (*DynamodbClient) PutItem

PutItem is mock function used to unit tests.

func (*DynamodbClient) Scan

Scan is mock function used to unit tests.

type S3Client

type S3Client struct {
	s3iface.S3API
	Data map[string]Bucket
}

S3Client Defines a mock struct to use as s3 client in unit tests.

func (*S3Client) GetObject

func (m *S3Client) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error)

GetObject is mock function used on unit tests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL