MCPcopy Create free account
hub / github.com/ScrapeGraphAI/toonify / test_generate_array_structure

Function test_generate_array_structure

tests/test_structure_generator.py:42–58  ·  view source on GitHub ↗

Test generating a structure with arrays.

()

Source from the content-addressed store, hash-verified

40
41
42def test_generate_array_structure():
43 """Test generating a structure with arrays."""
44 schema = {
45 "users": [{
46 "id": "user id",
47 "name": "user name",
48 "email": "user email"
49 }]
50 }
51
52 result = generate_structure(schema)
53
54 assert "users[N]{id,name,email}:" in result
55 assert "<user id>" in result
56 assert "<user name>" in result
57 assert "<user email>" in result
58 assert "..." in result
59
60
61def test_generate_root_array_structure():

Callers

nothing calls this directly

Calls 1

generate_structureFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…