(testing module replace): point to ge go-vise fork

This commit is contained in:
2025-05-07 13:09:38 +03:00
parent c8c0daac24
commit d07f95e1b4
18 changed files with 81 additions and 77 deletions

View File

@@ -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 (

View File

@@ -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

View File

@@ -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

View File

@@ -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) {}