From b115df56c08aff26b80c5e1eb8134a594d84670b Mon Sep 17 00:00:00 2001 From: V2Ray Date: Fri, 9 Oct 2015 17:58:35 +0200 Subject: [PATCH] fix test break --- testing/mocks/config.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/testing/mocks/config.go b/testing/mocks/config.go index 441e0a410..d7f34edae 100644 --- a/testing/mocks/config.go +++ b/testing/mocks/config.go @@ -17,8 +17,17 @@ func (config *ConnectionConfig) Settings(config.Type) interface{} { return config.SettingsValue } +type LogConfig struct { + AccessLogValue string +} + +func (config *LogConfig) AccessLog() string { + return config.AccessLogValue +} + type Config struct { PortValue uint16 + LogConfigValue *LogConfig InboundConfigValue *ConnectionConfig OutboundConfigValue *ConnectionConfig } @@ -27,6 +36,10 @@ func (config *Config) Port() uint16 { return config.PortValue } +func (config *Config) LogConfig() config.LogConfig { + return config.LogConfigValue +} + func (config *Config) InboundConfig() config.ConnectionConfig { return config.InboundConfigValue }