重构:完成架构一致性整改与生命周期收口
This commit is contained in:
1 parent
55904cc409
commit
9eb6be2875
344 files changed
+15961
-13926
No files matched your search
@@ -5,14 +5,14 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
// TestStaticContainsIndex 负责TestStaticContainsIndex相关处理。
|
||||
// TestStaticContainsIndex 封装TestStaticContainsIndex业务协调。
|
||||
func TestStaticContainsIndex(t *testing.T) {
|
||||
// static、err 保存static、err,供当前处理流程使用
|
||||
// static、err 用于本次流程后续判断的static、err
|
||||
static, err := Static()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
// data、err 保存data、err,供当前处理流程使用
|
||||
// data、err 用于本次流程后续判断的data、err
|
||||
data, err := fs.ReadFile(static, "index.html")
|
||||
if err != nil || len(data) == 0 {
|
||||
t.Fatalf("embedded index missing: %v", err)
|
||||
|
||||
Reference in new issue
Block a user