github.com/drone/runner-go@v1.12.0/secret/secret_test.go (about) 1 // Copyright 2019 Drone.IO Inc. All rights reserved. 2 // Use of this source code is governed by the Polyform License 3 // that can be found in the LICENSE file. 4 5 package secret 6 7 import ( 8 "context" 9 10 "github.com/drone/drone-go/drone" 11 ) 12 13 type mockProvider struct { 14 sec *drone.Secret 15 err error 16 } 17 18 func (p *mockProvider) Find(context.Context, *Request) (*drone.Secret, error) { 19 return p.sec, p.err 20 }