Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(util): pin fence stripping on the no-carrier fallback
  • Loading branch information
askalf committed Sep 22, 2026
commit 3b2ada09dc37274aa9ed7d15b083496392ddbad1
6 changes: 6 additions & 0 deletions runtime/krillinai/pkg/util/json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ func TestExtractJSONObjectLeavesUnparsableInputAlone(t *testing.T) {
key: "align",
want: `{"note":"x"} {"other":1}`,
},
{
name: "围栏内没有候选含目标字段时返回去围栏后的文本",
response: "```json\n{\"note\":\"x\"}\n```",
key: "align",
want: `{"note":"x"}`,
},
{
name: "同名字段只嵌套在下层时不算命中",
response: `{"data":{"align":[{"origin_part":"a"}]}}`,
Expand Down