// GetAsset is a mock implementation that returns a sample AssetInfo object and the error contained in the struct.
// This error can be used to test different code flows.
GetAsset is a mock implementation that returns a sample AssetInfo object and the error contained in the struct.
This error can be used to test different code flows.
// GetAsset is a mock implementation that returns a sample AssetInfo object and the error contained in the struct . // This error can be used to test different code flows .
func (m *MockDb) GetAsset(assetID string) (*data.AssetInfo, error) {
	if !m.ShouldStatusBeCreated {
		return &data.AssetInfo{
			Name:         assetID,
			URL:          constants.MockURL,
			UploadStatus: constants.AssetStatusUploaded,
		}, m.Err
	}
	return &data.AssetInfo{
		Name:         assetID,
		URL:          constants.MockURL,
		UploadStatus: constants.AssetStatusCreated,
	}, m.Err
}
func ( m * MockDb ) GetAsset ( assetID string ) ( * data . AssetInfo , error ) { if ! m . ShouldStatusBeCreated { return & data . AssetInfo { Name : assetID , URL : constants . MockURL , UploadStatus : constants . AssetStatusUploaded , } , m . Err } return & data . AssetInfo { Name : assetID , URL : constants . MockURL , UploadStatus : constants . AssetStatusCreated , } , m . Err }
GetAsset is a mock implementation that returns a sample AssetInfo object and the error contained in the struct.
GetAsset is a mock implementation that returns a sample AssetInfo object and the error contained in the struct .