-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: introduce how to generate a random phone number (#594)
Co-authored-by: rick <[email protected]>
- Loading branch information
1 parent
73d71a3
commit 7b25fa3
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
+++ | ||
title = "用例模板" | ||
+++ | ||
|
||
`atest` 采用 [sprig](https://masterminds.github.io/sprig/) 作为测试用例的模板引擎。通过模板函数可以生成很多随机数据: | ||
|
||
## 手机号 | ||
|
||
下面的代码可以生成 `182` 开头的手机号: | ||
|
||
``` | ||
182{{shuffle "09876543"}} | ||
``` |