lolly/internal/app/testutil.go
xfy911 57d4d3ba3c docs(app): add package comments for app module
- Add package documentation for app, app_common, import, app_windows, and testutil files
- Include author attribution (xfy)
2026-06-03 15:28:53 +08:00

20 lines
508 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//go:build !windows
// Package app 提供 Lolly 应用程序的生命周期管理和命令行入口。
//
// 包含测试工具函数,用于测试场景。
//
// 作者xfy
package app
import (
"rua.plus/lolly/internal/config"
"rua.plus/lolly/internal/logging"
)
// setupTestLogger 创建一个测试用的日志记录器。
// 返回一个使用默认配置的 AppLogger适用于测试场景。
func setupTestLogger() *logging.AppLogger {
return logging.NewAppLogger(&config.LoggingConfig{})
}