Versions in this module Expand all Collapse all v0 v0.2.19 Mar 17, 2026 Changes in this version + func CloneProtoMessage(t *testing.T, src proto.Message) proto.Message + func LoadConfigFromFile(t *testing.T, path string, target any) (runtimeconfig.KConfig, error) + func LoadConfigFromFileWithViper(t *testing.T, path string, msg proto.Message) + func SaveConfigToFileWithViper(t *testing.T, msg proto.Message, path string, formatName string) + func WithMockDataJSON(data map[string]interface{}) options.Option + func WithMockDataString(data map[string]string, format string) options.Option + func WithMockDataYAML(data map[string]interface{}) options.Option + type MockConsulSource struct + func (m *MockConsulSource) Load() ([]*runtimeconfig.KKeyValue, error) + func (m *MockConsulSource) NewSource(config *sourcev1.SourceConfig, opts ...options.Option) (kratosconfig.Source, error) + func (m *MockConsulSource) String() string + func (m *MockConsulSource) Watch() (runtimeconfig.KWatcher, error)