Skip to content

Commit 7b25fa3

Browse files
authored
docs: introduce how to generate a random phone number (#594)
Co-authored-by: rick <[email protected]>
1 parent 73d71a3 commit 7b25fa3

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ docker run -p 1234:8080 -v /var/tmp:/var/tmp \
9494
9595
## Template
9696
97-
The following fields are templated with [sprig](http://masterminds.github.io/sprig/):
97+
The following fields are templated with [sprig](https://masterminds.github.io/sprig/):
9898
9999
* API
100100
* Request Body
101101
* Request Header
102102
103103
### Functions
104104
105-
You could use all the common functions which comes from [sprig](http://masterminds.github.io/sprig/). Besides some specific functions are available:
105+
You could use all the common functions which comes from [sprig](https://masterminds.github.io/sprig/). Besides some specific functions are available:
106106
107107
| Name | Usage |
108108
|---|---|
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
+++
2+
title = "用例模板"
3+
+++
4+
5+
`atest` 采用 [sprig](https://masterminds.github.io/sprig/) 作为测试用例的模板引擎。通过模板函数可以生成很多随机数据:
6+
7+
## 手机号
8+
9+
下面的代码可以生成 `182` 开头的手机号:
10+
11+
```
12+
182{{shuffle "09876543"}}
13+
```

0 commit comments

Comments
 (0)