* Adjust unit test check rule for devops.

This commit is contained in:
caoyanyi
2023-12-27 19:22:02 +08:00
parent 4998fd2875
commit 590f02b160
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ cid=1
- 分支名为空,返回默认分支的日志
- 属性revision @b362ea7aa65515dc35ff3a93423478b2143e771d
- 属性msg @Initial commit
- 分支名为test1,返回空数组属性revision @0
- 分支名为test1,返回空数组属性revision @~~
- 分支名为test1000,返回主干的日志
- 属性revision @b362ea7aa65515dc35ff3a93423478b2143e771d
- 属性msg @Initial commit
@@ -32,7 +32,7 @@ $result = $git->getRepoLogs($repoID, $branch);
r(end($result)) && p('revision,msg') && e('b362ea7aa65515dc35ff3a93423478b2143e771d,Initial commit'); // 分支名为空,返回默认分支的日志
$branch = 'test1';
r($git->getRepoLogs($repoID, $branch)) && p('revision') && e('0'); // 分支名为test1,返回空数组
r($git->getRepoLogs($repoID, $branch)) && p('revision') && e('~~'); // 分支名为test1,返回空数组
$branch = 'test1000';
$result = $git->getRepoLogs($repoID, $branch);