test: 目录对齐赛道二成果物规范(tests/ 迁移+实验报告+提效测量脚本)

- src/test 迁移至根目录 tests/(16 测试 + fixtures/manual),导入改为 ../src/
- 新增 tsconfig.test.json 独立编译测试;.vscode-test.mjs / package.json / .gitignore 同步
- 新增 tests/test-execution-log.md、tests/test-cases.md(116 用例清单)
- 新增 tests/measure/measure-review-time.mjs + performance-comparison.md(提效测量)
- 重命名 3 个中文报告文件为 demo-*-coverage-report.md
- git rm --cached 解除 vsix 跟踪;README 标注演示视频进行中
This commit is contained in:
范智鹏
2026-08-26 19:17:44 +08:00
parent 313ae24346
commit e9762bfbe1
39 changed files with 2406 additions and 3 deletions
+16
View File
@@ -0,0 +1,16 @@
public class Buggy {
public void test() {
String password = "admin123";
String name = "test";
int x = 1;
int y = 2;
int z = x + y;
System.out.println("debug");
System.out.println("done");
}
public void duplicate() {
String password = "secret";
System.out.println(password);
}
}
+3
View File
@@ -0,0 +1,3 @@
.hello { color: #FFFFFF; background: black; }
#test { margin: 0px; }
.foo { font-size: 12px; }
+11
View File
@@ -0,0 +1,11 @@
var x = 1;
var y = 2;
var x = 3;
function test() {
var unused = 'hello';
console.log('debug');
return "world";
}
test();
+42
View File
@@ -0,0 +1,42 @@
<%@ page language="java" contentType="text/html" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title>${title}</title>
<style>
.btn { color: #fff; background: blue; }
.btn { font-size: 14px; }
body { color: #fff; }
body { margin: 0; }
</style>
</head>
<body>
<%
String password = "admin123";
String name = "test";
int x = 1;
%>
<p>${message} ${message}</p>
<c:if test="${not empty user}">
<p>Welcome, ${user.name}</p>
</c:if>
<c:forEach items="${list}" var="item">
<span>${item}</span>
</c:forEach>
<c:out value="${xssInput}" />
<c:forEach begin="1" end="5">
<span>hello</span>
</c:forEach>
<script>
var msg = "hello";
var msg = "world";
console.log(msg);
</script>
</body>
</html>
+3
View File
@@ -0,0 +1,3 @@
SELECT name FORM users;
SELECT * FORM products;
INSERT INTO customers VALUES (1, 'test');