Skip to content

Commit 3ad0d91

Browse files
author
Chojan Shang
committed
test(golden): intro golden tests
Signed-off-by: Chojan Shang <chojan.shang@vesoft.com>
1 parent d302821 commit 3ad0d91

34 files changed

Lines changed: 394 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"sessionId": "sess_abc123def456"
3+
}

tests/golden/content_audio.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "audio",
3+
"mimeType": "audio/wav",
4+
"data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEAQB8AAAB..."
5+
}

tests/golden/content_image.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "image",
3+
"mimeType": "image/png",
4+
"data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB..."
5+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"type": "resource",
3+
"resource": {
4+
"uri": "file:///home/user/document.pdf",
5+
"mimeType": "application/pdf",
6+
"blob": "<b64>"
7+
}
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "resource_link",
3+
"uri": "file:///home/user/document.pdf",
4+
"name": "document.pdf",
5+
"mimeType": "application/pdf",
6+
"size": 1024000
7+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"type": "resource",
3+
"resource": {
4+
"uri": "file:///home/user/script.py",
5+
"mimeType": "text/x-python",
6+
"text": "def hello():\n print('Hello, world!')"
7+
}
8+
}

tests/golden/content_text.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "text",
3+
"text": "What's the weather like today?"
4+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sessionId": "sess_abc123def456",
3+
"path": "/home/user/project/src/main.py",
4+
"line": 10,
5+
"limit": 50
6+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"content": "def hello_world():\n print('Hello, world!')\n"
3+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"sessionId": "sess_abc123def456",
3+
"path": "/home/user/project/config.json",
4+
"content": "{\n \"debug\": true,\n \"version\": \"1.0.0\"\n}"
5+
}

0 commit comments

Comments
 (0)