mirror of
https://gitee.com/openharmony/test_developertest
synced 2024-11-23 13:09:52 +00:00
commit
d37c10f1d3
@ -216,6 +216,8 @@ subsystem # 子系统
|
||||
EXPECT_EQ(4, actual);
|
||||
}
|
||||
```
|
||||
> **注意:** @tc.require: 格式必须以AR、SR或issus开头:AR+AR号、SR+SR号或issue+issue号,例如:issueI56WJ7
|
||||
|
||||
在编写用例时,我们提供了三种用例模板供您选择。
|
||||
|
||||
| 类型 | 描述 |
|
||||
@ -374,6 +376,7 @@ subsystem # 子系统
|
||||
expect(info != null).assertEqual(true)
|
||||
})
|
||||
```
|
||||
> **注意:** @tc.require: 格式必须以AR、SR或issus开头:AR+AR号、SR+SR号或issue+issue号,例如:issueI56WJ7
|
||||
|
||||
**Fuzz测试**
|
||||
|
||||
|
@ -133,8 +133,12 @@ Fuzzing测试框架使用了LLVM编译器框架中的[libFuzzer](https://llvm.or
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
### 注意:当data需强制转换为字符串类型时,需要携带size,例如:
|
||||
```
|
||||
std::string result((const char*) data, size);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
2. BUILD.gn编写
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user