jx/internal/resource/mock_config_test.go
Matthew Rich 8094d1c063
Some checks are pending
Lint / golangci-lint (push) Waiting to run
Declarative Tests / test (push) Waiting to run
Declarative Tests / build-fedora (push) Waiting to run
Declarative Tests / build-ubuntu-focal (push) Waiting to run
add build support to container_image resource; add more testing
2024-09-19 08:11:57 +00:00

18 lines
331 B
Go

// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package resource
import (
_ "fmt"
_ "github.com/stretchr/testify/assert"
_ "os"
_ "strings"
_ "testing"
)
type MockConfig func(key string) (value any, err error)
func (m MockConfig) GetValue(key string) (value any, err error) {
return m(key)
}