(testing module replace): point to ge go-vise fork
This commit is contained in:
@@ -4,9 +4,9 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"git.defalsify.org/vise.git/logging"
|
||||
"git.grassecon.net/grassrootseconomics/visedriver/env"
|
||||
"git.grassecon.net/grassrootseconomics/visedriver/storage"
|
||||
"github.com/grassrootseconomics/go-vise/logging"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build configreport
|
||||
// +build configreport
|
||||
|
||||
package config
|
||||
@@ -7,7 +8,7 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"git.defalsify.org/vise.git/logging"
|
||||
"github.com/grassrootseconomics/go-vise/logging"
|
||||
)
|
||||
|
||||
// go test -tags configreport ./config/... ---> run with tag
|
||||
|
||||
@@ -5,8 +5,8 @@ package config
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.defalsify.org/vise.git/logging"
|
||||
"git.grassecon.net/grassrootseconomics/visedriver/env"
|
||||
"github.com/grassrootseconomics/go-vise/logging"
|
||||
)
|
||||
|
||||
// ConfigValue represents a configuration key-value pair
|
||||
|
||||
@@ -3,19 +3,20 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"git.defalsify.org/vise.git/logging"
|
||||
"github.com/grassrootseconomics/go-vise/logging"
|
||||
)
|
||||
|
||||
type Config struct{}
|
||||
|
||||
func NewConfig(logger logging.Vanilla) *Config {
|
||||
return &Config{}
|
||||
return &Config{}
|
||||
}
|
||||
|
||||
func (c *Config) AddKey(key string, defaultValue string, sensitive bool, validator func(string) error) {}
|
||||
func (c *Config) AddKey(key string, defaultValue string, sensitive bool, validator func(string) error) {
|
||||
}
|
||||
|
||||
func (c *Config) GetValue(key string) (string, error) {
|
||||
return "", nil
|
||||
return "", nil
|
||||
}
|
||||
|
||||
func (c *Config) Report(level string) {}
|
||||
func (c *Config) Report(level string) {}
|
||||
|
||||
Reference in New Issue
Block a user