ソースを参照

fix test break

V2Ray 10 年 前
コミット
b115df56c0
1 ファイル変更13 行追加0 行削除
  1. 13 0
      testing/mocks/config.go

+ 13 - 0
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
 }