Files
aperture/auth/mock_test.go
2020-03-18 13:57:18 -07:00

26 lines
489 B
Go

package auth_test
import (
"context"
"github.com/lightninglabs/aperture/auth"
"github.com/lightninglabs/aperture/mint"
"github.com/lightninglabs/loop/lsat"
"gopkg.in/macaroon.v2"
)
type mockMint struct {
}
var _ auth.Minter = (*mockMint)(nil)
func (m *mockMint) MintLSAT(_ context.Context,
services ...lsat.Service) (*macaroon.Macaroon, string, error) {
return nil, "", nil
}
func (m *mockMint) VerifyLSAT(_ context.Context, p *mint.VerificationParams) error {
return nil
}