github.com/drone/runner-go@v1.12.0/environ/provider/provider_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 provider
     6  
     7  import (
     8  	"context"
     9  )
    10  
    11  var noContext = context.Background()
    12  
    13  type mockProvider struct {
    14  	out []*Variable
    15  	err error
    16  }
    17  
    18  func (p *mockProvider) List(context.Context, *Request) ([]*Variable, error) {
    19  	return p.out, p.err
    20  }