Greg647465374's picture
shorten the files
41c095f
{
"ast": {
"items": [
{
"use": {
"tree": {
"path": {
"ident": "solfunmeme_dioxus",
"tree": {
"path": {
"ident": "core",
"tree": "*"
}
}
}
}
}
},
{
"fn": {
"ident": "main",
"inputs": [],
"output": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"tuple": {
"elems": []
}
}
},
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"trait_object": {
"bounds": [
{
"trait": {
"path": {
"segments": [
{
"ident": "std"
},
{
"ident": "error"
},
{
"ident": "Error"
}
]
}
}
}
],
"dyn": true
}
}
}
]
}
},
"ident": "Box"
}
]
}
}
}
]
}
},
"ident": "Result"
}
]
}
},
"stmts": [
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\"🚀 Solfunmeme Test Runner - Comprehensive Coverage Tests\""
}
]
}
},
{
"expr": [
{
"try": {
"expr": {
"call": {
"args": [],
"func": {
"path": {
"segments": [
{
"ident": "test_vectorization"
}
]
}
}
}
}
}
},
true
]
},
{
"expr": [
{
"try": {
"expr": {
"call": {
"args": [],
"func": {
"path": {
"segments": [
{
"ident": "test_declaration_splitting"
}
]
}
}
}
}
}
},
true
]
},
{
"expr": [
{
"try": {
"expr": {
"call": {
"args": [],
"func": {
"path": {
"segments": [
{
"ident": "test_duplicate_detection"
}
]
}
}
}
}
}
},
true
]
},
{
"expr": [
{
"try": {
"expr": {
"call": {
"args": [],
"func": {
"path": {
"segments": [
{
"ident": "test_code_analysis"
}
]
}
}
}
}
}
},
true
]
},
{
"expr": [
{
"try": {
"expr": {
"call": {
"args": [],
"func": {
"path": {
"segments": [
{
"ident": "test_wallet_integration"
}
]
}
}
}
}
}
},
true
]
},
{
"expr": [
{
"try": {
"expr": {
"call": {
"args": [],
"func": {
"path": {
"segments": [
{
"ident": "test_self_analysis"
}
]
}
}
}
}
}
},
true
]
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\"\\n✅ All tests completed successfully!\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\"📊 Coverage Report:\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Vectorization: ✅\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Declaration Splitting: ✅\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Duplicate Detection: ✅\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Code Analysis: ✅\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Meme Generation: ✅\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Wallet Integration: ✅\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Self Analysis: ✅\""
}
]
}
},
{
"expr": [
{
"call": {
"args": [
{
"tuple": {
"elems": []
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "Ok"
}
]
}
}
}
},
false
]
}
]
}
},
{
"fn": {
"ident": "test_vectorization",
"inputs": [],
"output": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"tuple": {
"elems": []
}
}
},
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"trait_object": {
"bounds": [
{
"trait": {
"path": {
"segments": [
{
"ident": "std"
},
{
"ident": "error"
},
{
"ident": "Error"
}
]
}
}
}
],
"dyn": true
}
}
}
]
}
},
"ident": "Box"
}
]
}
}
}
]
}
},
"ident": "Result"
}
]
}
},
"stmts": [
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\"\\n🔬 Testing Code Vectorization...\""
}
]
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [
{
"lit": {
"int": "128"
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "CodeVectorizer"
},
{
"ident": "new"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "vectorizer"
}
}
}
},
{
"let": {
"init": {
"expr": {
"macro": {
"delimiter": "bracket",
"path": {
"segments": [
{
"ident": "vec"
}
]
},
"tokens": [
{
"lit": "\"fn hello() { println!(\\\"Hello\\\"); }\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"struct Point { x: f64, y: f64 }\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"enum Color { Red, Green, Blue }\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
}
]
}
}
},
"pat": {
"ident": {
"ident": "test_codes"
}
}
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [],
"func": {
"path": {
"segments": [
{
"ident": "Vec"
},
{
"ident": "new"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "vectors",
"mut": true
}
}
}
},
{
"expr": [
{
"for_loop": {
"body": [
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [
{
"path": {
"segments": [
{
"ident": "code"
}
]
}
}
],
"method": "vectorize",
"receiver": {
"path": {
"segments": [
{
"ident": "vectorizer"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "vector"
}
}
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert_eq"
}
]
},
"semi_token": true,
"tokens": [
{
"ident": "vector"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "dimensions"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "len"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "128"
}
]
}
},
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [],
"method": "sum",
"receiver": {
"method_call": {
"args": [],
"method": "iter",
"receiver": {
"field": {
"base": {
"path": {
"segments": [
{
"ident": "vector"
}
]
}
},
"ident": "dimensions"
}
}
}
}
}
}
},
"pat": {
"type": {
"pat": {
"ident": {
"ident": "sum"
}
},
"ty": {
"path": {
"segments": [
{
"ident": "f32"
}
]
}
}
}
}
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert"
}
]
},
"semi_token": true,
"tokens": [
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "sum"
},
{
"punct": {
"op": "-",
"spacing": "alone"
}
},
{
"lit": "1.0"
}
]
}
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "abs"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": "<",
"spacing": "alone"
}
},
{
"lit": "1e-5"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Vector not normalized: sum = {}\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "sum"
}
]
}
},
{
"expr": [
{
"method_call": {
"args": [
{
"path": {
"segments": [
{
"ident": "vector"
}
]
}
}
],
"method": "push",
"receiver": {
"path": {
"segments": [
{
"ident": "vectors"
}
]
}
}
}
},
true
]
}
],
"expr": {
"reference": {
"expr": {
"path": {
"segments": [
{
"ident": "test_codes"
}
]
}
}
}
},
"pat": {
"ident": {
"ident": "code"
}
}
}
},
false
]
},
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [
{
"reference": {
"expr": {
"index": {
"expr": {
"path": {
"segments": [
{
"ident": "vectors"
}
]
}
},
"index": {
"lit": {
"int": "0"
}
}
}
}
}
}
],
"method": "similarity",
"receiver": {
"index": {
"expr": {
"path": {
"segments": [
{
"ident": "vectors"
}
]
}
},
"index": {
"lit": {
"int": "0"
}
}
}
}
}
}
},
"pat": {
"ident": {
"ident": "similarity"
}
}
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert"
}
]
},
"semi_token": true,
"tokens": [
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"ident": "similarity"
},
{
"punct": {
"op": "-",
"spacing": "alone"
}
},
{
"lit": "1.0"
}
]
}
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "abs"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": "<",
"spacing": "alone"
}
},
{
"lit": "1e-6"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Self-similarity should be 1.0\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" ✅ Vectorization tests passed\""
}
]
}
},
{
"expr": [
{
"call": {
"args": [
{
"tuple": {
"elems": []
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "Ok"
}
]
}
}
}
},
false
]
}
]
}
},
{
"fn": {
"ident": "test_declaration_splitting",
"inputs": [],
"output": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"tuple": {
"elems": []
}
}
},
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"trait_object": {
"bounds": [
{
"trait": {
"path": {
"segments": [
{
"ident": "std"
},
{
"ident": "error"
},
{
"ident": "Error"
}
]
}
}
}
],
"dyn": true
}
}
}
]
}
},
"ident": "Box"
}
]
}
}
}
]
}
},
"ident": "Result"
}
]
}
},
"stmts": [
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\"\\n🔪 Testing Declaration Splitting...\""
}
]
}
},
{
"let": {
"init": {
"expr": {
"lit": {
"str": "\"\\nuse std::collections::HashMap;\\n\\nfn main() {\\n println!(\\\"Hello, world!\\\");\\n}\\n\\nstruct Point {\\n x: f64,\\n y: f64,\\n}\\n\\nenum Color {\\n Red,\\n Green,\\n Blue,\\n}\\n\\ntrait Display {\\n fn display(&self);\\n}\\n\\nimpl Display for Point {\\n fn display(&self) {\\n println!(\\\"Point({}, {})\\\", self.x, self.y);\\n }\\n}\\n\""
}
}
},
"pat": {
"ident": {
"ident": "test_code"
}
}
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [],
"func": {
"path": {
"segments": [
{
"ident": "DeclarationSplitter"
},
{
"ident": "new"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "splitter",
"mut": true
}
}
}
},
{
"expr": [
{
"try": {
"expr": {
"method_call": {
"args": [
{
"path": {
"segments": [
{
"ident": "test_code"
}
]
}
},
{
"call": {
"args": [
{
"method_call": {
"args": [],
"method": "to_string",
"receiver": {
"lit": {
"str": "\"test.rs\""
}
}
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "Some"
}
]
}
}
}
}
],
"method": "split_file",
"receiver": {
"path": {
"segments": [
{
"ident": "splitter"
}
]
}
}
}
}
}
},
true
]
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert"
}
]
},
"semi_token": true,
"tokens": [
{
"ident": "splitter"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "declarations"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "len"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ">",
"spacing": "joint"
}
},
{
"punct": {
"op": "=",
"spacing": "alone"
}
},
{
"lit": "5"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Should find at least 5 declarations\""
}
]
}
},
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [
{
"path": {
"segments": [
{
"ident": "DeclarationType"
},
{
"ident": "Function"
}
]
}
}
],
"method": "get_declarations_by_type",
"receiver": {
"path": {
"segments": [
{
"ident": "splitter"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "functions"
}
}
}
},
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [
{
"path": {
"segments": [
{
"ident": "DeclarationType"
},
{
"ident": "Struct"
}
]
}
}
],
"method": "get_declarations_by_type",
"receiver": {
"path": {
"segments": [
{
"ident": "splitter"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "structs"
}
}
}
},
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [
{
"path": {
"segments": [
{
"ident": "DeclarationType"
},
{
"ident": "Enum"
}
]
}
}
],
"method": "get_declarations_by_type",
"receiver": {
"path": {
"segments": [
{
"ident": "splitter"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "enums"
}
}
}
},
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [
{
"path": {
"segments": [
{
"ident": "DeclarationType"
},
{
"ident": "Trait"
}
]
}
}
],
"method": "get_declarations_by_type",
"receiver": {
"path": {
"segments": [
{
"ident": "splitter"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "traits"
}
}
}
},
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [
{
"path": {
"segments": [
{
"ident": "DeclarationType"
},
{
"ident": "Impl"
}
]
}
}
],
"method": "get_declarations_by_type",
"receiver": {
"path": {
"segments": [
{
"ident": "splitter"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "impls"
}
}
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert"
}
]
},
"semi_token": true,
"tokens": [
{
"ident": "functions"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "len"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ">",
"spacing": "joint"
}
},
{
"punct": {
"op": "=",
"spacing": "alone"
}
},
{
"lit": "2"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Should find at least 2 functions\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert_eq"
}
]
},
"semi_token": true,
"tokens": [
{
"ident": "structs"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "len"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "1"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Should find 1 struct\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert_eq"
}
]
},
"semi_token": true,
"tokens": [
{
"ident": "enums"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "len"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "1"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Should find 1 enum\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert_eq"
}
]
},
"semi_token": true,
"tokens": [
{
"ident": "traits"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "len"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "1"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Should find 1 trait\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert_eq"
}
]
},
"semi_token": true,
"tokens": [
{
"ident": "impls"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "len"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "1"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"Should find 1 impl\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" ✅ Declaration splitting tests passed\""
}
]
}
},
{
"expr": [
{
"call": {
"args": [
{
"tuple": {
"elems": []
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "Ok"
}
]
}
}
}
},
false
]
}
]
}
},
{
"fn": {
"ident": "test_duplicate_detection",
"inputs": [],
"output": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"tuple": {
"elems": []
}
}
},
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"trait_object": {
"bounds": [
{
"trait": {
"path": {
"segments": [
{
"ident": "std"
},
{
"ident": "error"
},
{
"ident": "Error"
}
]
}
}
}
],
"dyn": true
}
}
}
]
}
},
"ident": "Box"
}
]
}
}
}
]
}
},
"ident": "Result"
}
]
}
},
"stmts": [
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\"\\n🔍 Testing Duplicate Detection...\""
}
]
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [
{
"lit": {
"int": "64"
}
},
{
"lit": {
"float": "0.8"
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "DuplicateDetector"
},
{
"ident": "new"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "detector"
}
}
}
},
{
"let": {
"init": {
"expr": {
"macro": {
"delimiter": "bracket",
"path": {
"segments": [
{
"ident": "vec"
}
]
},
"tokens": [
{
"ident": "Declaration"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "name"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"func1\""
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "to_string"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "declaration_type"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "DeclarationType"
},
{
"punct": {
"op": ":",
"spacing": "joint"
}
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "Function"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "content"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"fn test() { println!(\\\"hello\\\"); }\""
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "to_string"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "line_start"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "1"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "line_end"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "3"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "file_path"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "Some"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"lit": "\"file1.rs\""
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "to_string"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "Declaration"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "name"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"func2\""
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "to_string"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "declaration_type"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "DeclarationType"
},
{
"punct": {
"op": ":",
"spacing": "joint"
}
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "Function"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "content"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"fn test() { println!(\\\"hello\\\"); }\""
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "to_string"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "line_start"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "1"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "line_end"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "3"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "file_path"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "Some"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"lit": "\"file2.rs\""
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "to_string"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "Declaration"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "name"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"unique\""
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "to_string"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "declaration_type"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "DeclarationType"
},
{
"punct": {
"op": ":",
"spacing": "joint"
}
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "Function"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "content"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"fn unique() { println!(\\\"unique\\\"); }\""
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "to_string"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "line_start"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "1"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "line_end"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "3"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "file_path"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"ident": "Some"
},
{
"group": {
"delimiter": "parenthesis",
"stream": [
{
"lit": "\"file3.rs\""
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "to_string"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
}
]
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
}
]
}
}
},
"pat": {
"ident": {
"ident": "declarations"
}
}
}
},
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [
{
"reference": {
"expr": {
"path": {
"segments": [
{
"ident": "declarations"
}
]
}
}
}
}
],
"method": "detect_duplicates",
"receiver": {
"path": {
"segments": [
{
"ident": "detector"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "report"
}
}
}
},
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [
{
"reference": {
"expr": {
"path": {
"segments": [
{
"ident": "report"
}
]
}
}
}
}
],
"method": "calculate_deduplication_savings",
"receiver": {
"path": {
"segments": [
{
"ident": "detector"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "stats"
}
}
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" 📊 Duplicate Report:\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Groups: {}\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "report"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "groups"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "len"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Total Duplicates: {}\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "report"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "total_duplicates"
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Savings: {:.1}%\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "stats"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "savings_percentage"
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" ✅ Duplicate detection tests passed\""
}
]
}
},
{
"expr": [
{
"call": {
"args": [
{
"tuple": {
"elems": []
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "Ok"
}
]
}
}
}
},
false
]
}
]
}
},
{
"fn": {
"ident": "test_code_analysis",
"inputs": [],
"output": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"tuple": {
"elems": []
}
}
},
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"trait_object": {
"bounds": [
{
"trait": {
"path": {
"segments": [
{
"ident": "std"
},
{
"ident": "error"
},
{
"ident": "Error"
}
]
}
}
}
],
"dyn": true
}
}
}
]
}
},
"ident": "Box"
}
]
}
}
}
]
}
},
"ident": "Result"
}
]
}
},
"stmts": [
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\"\\n📊 Testing Code Analysis...\""
}
]
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [
{
"lit": {
"int": "128"
}
},
{
"lit": {
"float": "0.8"
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "CodeAnalyzer"
},
{
"ident": "new"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "analyzer",
"mut": true
}
}
}
},
{
"let": {
"init": {
"expr": {
"lit": {
"str": "\"\\nfn fibonacci(n: u32) -> u32 {\\n match n {\\n 0 => 0,\\n 1 => 1,\\n _ => fibonacci(n - 1) + fibonacci(n - 2),\\n }\\n}\\n\\nstruct Point {\\n x: f64,\\n y: f64,\\n}\\n\\nimpl Point {\\n fn new(x: f64, y: f64) -> Self {\\n Self { x, y }\\n }\\n}\\n\""
}
}
},
"pat": {
"ident": {
"ident": "test_code"
}
}
}
},
{
"let": {
"init": {
"expr": {
"try": {
"expr": {
"method_call": {
"args": [
{
"path": {
"segments": [
{
"ident": "test_code"
}
]
}
},
{
"method_call": {
"args": [],
"method": "to_string",
"receiver": {
"lit": {
"str": "\"test.rs\""
}
}
}
}
],
"method": "analyze_file",
"receiver": {
"path": {
"segments": [
{
"ident": "analyzer"
}
]
}
}
}
}
}
}
},
"pat": {
"ident": {
"ident": "analysis"
}
}
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert_eq"
}
]
},
"semi_token": true,
"tokens": [
{
"ident": "analysis"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "file_path"
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"lit": "\"test.rs\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert"
}
]
},
"semi_token": true,
"tokens": [
{
"ident": "analysis"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "declarations"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "len"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ">",
"spacing": "alone"
}
},
{
"lit": "0"
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert_eq"
}
]
},
"semi_token": true,
"tokens": [
{
"ident": "analysis"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "declarations"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "len"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "analysis"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "vectors"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "len"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert"
}
]
},
"semi_token": true,
"tokens": [
{
"punct": {
"op": "!",
"spacing": "alone"
}
},
{
"ident": "analysis"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "json_ast"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "is_empty"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" 📈 Analysis Results:\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Declarations: {}\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "analysis"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "declarations"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "len"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Functions: {}\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "analysis"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "metrics"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "function_count"
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Structs: {}\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "analysis"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "metrics"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "struct_count"
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Complexity: {:.2}\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "analysis"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "metrics"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "complexity_score"
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" ✅ Code analysis tests passed\""
}
]
}
},
{
"expr": [
{
"call": {
"args": [
{
"tuple": {
"elems": []
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "Ok"
}
]
}
}
}
},
false
]
}
]
}
},
{
"fn": {
"ident": "test_wallet_integration",
"inputs": [],
"output": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"tuple": {
"elems": []
}
}
},
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"trait_object": {
"bounds": [
{
"trait": {
"path": {
"segments": [
{
"ident": "std"
},
{
"ident": "error"
},
{
"ident": "Error"
}
]
}
}
}
],
"dyn": true
}
}
}
]
}
},
"ident": "Box"
}
]
}
}
}
]
}
},
"ident": "Result"
}
]
}
},
"stmts": [
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\"\\n💰 Testing Wallet Integration...\""
}
]
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [],
"func": {
"path": {
"segments": [
{
"ident": "WalletManager"
},
{
"ident": "new"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "wallet",
"mut": true
}
}
}
},
{
"expr": [
{
"try": {
"expr": {
"method_call": {
"args": [
{
"lit": {
"str": "\"test_password_123\""
}
}
],
"method": "initialize_with_password",
"receiver": {
"path": {
"segments": [
{
"ident": "wallet"
}
]
}
}
}
}
}
},
true
]
},
{
"expr": [
{
"try": {
"expr": {
"method_call": {
"args": [
{
"lit": {
"str": "\"AKIATEST\""
}
},
{
"lit": {
"str": "\"secret_key_test\""
}
}
],
"method": "store_aws_credentials",
"receiver": {
"path": {
"segments": [
{
"ident": "wallet"
}
]
}
}
}
}
}
},
true
]
},
{
"let": {
"init": {
"expr": {
"try": {
"expr": {
"method_call": {
"args": [],
"method": "get_aws_credentials",
"receiver": {
"path": {
"segments": [
{
"ident": "wallet"
}
]
}
}
}
}
}
}
},
"pat": {
"ident": {
"ident": "aws_creds"
}
}
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert"
}
]
},
"semi_token": true,
"tokens": [
{
"ident": "aws_creds"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "is_some"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"expr": [
{
"try": {
"expr": {
"method_call": {
"args": [
{
"lit": {
"str": "\"openai\""
}
},
{
"lit": {
"str": "\"sk-test123\""
}
}
],
"method": "store_ai_key",
"receiver": {
"path": {
"segments": [
{
"ident": "wallet"
}
]
}
}
}
}
}
},
true
]
},
{
"let": {
"init": {
"expr": {
"try": {
"expr": {
"method_call": {
"args": [
{
"lit": {
"str": "\"openai\""
}
}
],
"method": "get_ai_key",
"receiver": {
"path": {
"segments": [
{
"ident": "wallet"
}
]
}
}
}
}
}
}
},
"pat": {
"ident": {
"ident": "openai_key"
}
}
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "assert"
}
]
},
"semi_token": true,
"tokens": [
{
"ident": "openai_key"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "is_some"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"expr": [
{
"try": {
"expr": {
"method_call": {
"args": [
{
"lit": {
"str": "\"main_wallet\""
}
},
{
"lit": {
"str": "\"test_private_key\""
}
}
],
"method": "store_solana_key",
"receiver": {
"path": {
"segments": [
{
"ident": "wallet"
}
]
}
}
}
}
}
},
true
]
},
{
"let": {
"init": {
"expr": {
"try": {
"expr": {
"method_call": {
"args": [],
"method": "export_secrets",
"receiver": {
"path": {
"segments": [
{
"ident": "wallet"
}
]
}
}
}
}
}
}
},
"pat": {
"ident": {
"ident": "exported"
}
}
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [],
"func": {
"path": {
"segments": [
{
"ident": "WalletManager"
},
{
"ident": "new"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "new_wallet",
"mut": true
}
}
}
},
{
"expr": [
{
"try": {
"expr": {
"method_call": {
"args": [
{
"lit": {
"str": "\"test_password_123\""
}
}
],
"method": "initialize_with_password",
"receiver": {
"path": {
"segments": [
{
"ident": "new_wallet"
}
]
}
}
}
}
}
},
true
]
},
{
"expr": [
{
"try": {
"expr": {
"method_call": {
"args": [
{
"reference": {
"expr": {
"path": {
"segments": [
{
"ident": "exported"
}
]
}
}
}
}
],
"method": "import_secrets",
"receiver": {
"path": {
"segments": [
{
"ident": "new_wallet"
}
]
}
}
}
}
}
},
true
]
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" 🔐 Wallet Features:\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - AWS Credentials: ✅\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - AI Keys: ✅\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Solana Keys: ✅\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Export/Import: ✅\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Encryption: ✅\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" ✅ Wallet integration tests passed\""
}
]
}
},
{
"expr": [
{
"call": {
"args": [
{
"tuple": {
"elems": []
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "Ok"
}
]
}
}
}
},
false
]
}
]
}
},
{
"fn": {
"ident": "test_self_analysis",
"inputs": [],
"output": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"tuple": {
"elems": []
}
}
},
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"trait_object": {
"bounds": [
{
"trait": {
"path": {
"segments": [
{
"ident": "std"
},
{
"ident": "error"
},
{
"ident": "Error"
}
]
}
}
}
],
"dyn": true
}
}
}
]
}
},
"ident": "Box"
}
]
}
}
}
]
}
},
"ident": "Result"
}
]
}
},
"stmts": [
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\"\\n🪞 Testing Self Analysis...\""
}
]
}
},
{
"let": {
"init": {
"expr": {
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "include_str"
}
]
},
"tokens": [
{
"lit": "\"test_runner.rs\""
}
]
}
}
},
"pat": {
"ident": {
"ident": "current_file"
}
}
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [
{
"lit": {
"int": "256"
}
},
{
"lit": {
"float": "0.8"
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "CodeAnalyzer"
},
{
"ident": "new"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "analyzer",
"mut": true
}
}
}
},
{
"let": {
"init": {
"expr": {
"try": {
"expr": {
"method_call": {
"args": [
{
"path": {
"segments": [
{
"ident": "current_file"
}
]
}
},
{
"method_call": {
"args": [],
"method": "to_string",
"receiver": {
"lit": {
"str": "\"test_runner.rs\""
}
}
}
}
],
"method": "analyze_file",
"receiver": {
"path": {
"segments": [
{
"ident": "analyzer"
}
]
}
}
}
}
}
}
},
"pat": {
"ident": {
"ident": "analysis"
}
}
}
},
{
"let": {
"init": {
"expr": {
"call": {
"args": [
{
"lit": {
"int": "256"
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "MemeGenerator"
},
{
"ident": "new"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "generator"
}
}
}
},
{
"let": {
"init": {
"expr": {
"method_call": {
"args": [
{
"reference": {
"expr": {
"array": {
"elems": [
{
"method_call": {
"args": [],
"method": "clone",
"receiver": {
"path": {
"segments": [
{
"ident": "analysis"
}
]
}
}
}
}
]
}
}
}
}
],
"method": "create_meme_ecosystem",
"receiver": {
"path": {
"segments": [
{
"ident": "generator"
}
]
}
}
}
}
},
"pat": {
"ident": {
"ident": "ecosystem"
}
}
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" 🔍 Self-Analysis Results:\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Functions Found: {}\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "analysis"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "metrics"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "function_count"
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Total Lines: {}\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "analysis"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "metrics"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "total_lines"
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Complexity Score: {:.2}\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "analysis"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "metrics"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "complexity_score"
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" - Ecosystem Size: {}\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "ecosystem"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "memes"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "len"
},
{
"group": {
"delimiter": "parenthesis",
"stream": []
}
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" 🎭 Generated Memes:\""
}
]
}
},
{
"macro": {
"delimiter": "paren",
"path": {
"segments": [
{
"ident": "println"
}
]
},
"semi_token": true,
"tokens": [
{
"lit": "\" ✅ Self analysis tests passed\""
}
]
}
},
{
"expr": [
{
"call": {
"args": [
{
"tuple": {
"elems": []
}
}
],
"func": {
"path": {
"segments": [
{
"ident": "Ok"
}
]
}
}
}
},
false
]
}
]
}
}
]
},
"file_path": "src\\bin\\test_runner.rs",
"summary": {
"emoji_counts_in_strings": {
"✅": 19,
"🎭": 1,
"💰": 1,
"📈": 1,
"📊": 3,
"🔍": 2,
"🔐": 1,
"🔪": 1,
"🔬": 1,
"🚀": 1,
"🪞": 1
},
"string_literals": [
"\"🚀 Solfunmeme Test Runner - Comprehensive Coverage Tests\"",
"\"\\n✅ All tests completed successfully!\"",
"\"📊 Coverage Report:\"",
"\" - Vectorization: ✅\"",
"\" - Declaration Splitting: ✅\"",
"\" - Duplicate Detection: ✅\"",
"\" - Code Analysis: ✅\"",
"\" - Meme Generation: ✅\"",
"\" - Wallet Integration: ✅\"",
"\" - Self Analysis: ✅\"",
"\"\\n🔬 Testing Code Vectorization...\"",
"\"fn hello() { println!(\\\"Hello\\\"); }\"",
"\"struct Point { x: f64, y: f64 }\"",
"\"enum Color { Red, Green, Blue }\"",
"128",
"1.0",
"1e-5",
"\"Vector not normalized: sum = {}\"",
"1.0",
"1e-6",
"\"Self-similarity should be 1.0\"",
"\" ✅ Vectorization tests passed\"",
"\"\\n🔪 Testing Declaration Splitting...\"",
"\"\\nuse std::collections::HashMap;\\n\\nfn main() {\\n println!(\\\"Hello, world!\\\");\\n}\\n\\nstruct Point {\\n x: f64,\\n y: f64,\\n}\\n\\nenum Color {\\n Red,\\n Green,\\n Blue,\\n}\\n\\ntrait Display {\\n fn display(&self);\\n}\\n\\nimpl Display for Point {\\n fn display(&self) {\\n println!(\\\"Point({}, {})\\\", self.x, self.y);\\n }\\n}\\n\"",
"\"test.rs\"",
"5",
"\"Should find at least 5 declarations\"",
"2",
"\"Should find at least 2 functions\"",
"1",
"\"Should find 1 struct\"",
"1",
"\"Should find 1 enum\"",
"1",
"\"Should find 1 trait\"",
"1",
"\"Should find 1 impl\"",
"\" ✅ Declaration splitting tests passed\"",
"\"\\n🔍 Testing Duplicate Detection...\"",
"\"func1\"",
"\"fn test() { println!(\\\"hello\\\"); }\"",
"1",
"3",
"\"file1.rs\"",
"\"func2\"",
"\"fn test() { println!(\\\"hello\\\"); }\"",
"1",
"3",
"\"file2.rs\"",
"\"unique\"",
"\"fn unique() { println!(\\\"unique\\\"); }\"",
"1",
"3",
"\"file3.rs\"",
"\" 📊 Duplicate Report:\"",
"\" - Groups: {}\"",
"\" - Total Duplicates: {}\"",
"\" - Savings: {:.1}%\"",
"\" ✅ Duplicate detection tests passed\"",
"\"\\n📊 Testing Code Analysis...\"",
"\"\\nfn fibonacci(n: u32) -> u32 {\\n match n {\\n 0 => 0,\\n 1 => 1,\\n _ => fibonacci(n - 1) + fibonacci(n - 2),\\n }\\n}\\n\\nstruct Point {\\n x: f64,\\n y: f64,\\n}\\n\\nimpl Point {\\n fn new(x: f64, y: f64) -> Self {\\n Self { x, y }\\n }\\n}\\n\"",
"\"test.rs\"",
"\"test.rs\"",
"0",
"\" 📈 Analysis Results:\"",
"\" - Declarations: {}\"",
"\" - Functions: {}\"",
"\" - Structs: {}\"",
"\" - Complexity: {:.2}\"",
"\" ✅ Code analysis tests passed\"",
"\"\\n💰 Testing Wallet Integration...\"",
"\"test_password_123\"",
"\"AKIATEST\"",
"\"secret_key_test\"",
"\"openai\"",
"\"sk-test123\"",
"\"openai\"",
"\"main_wallet\"",
"\"test_private_key\"",
"\"test_password_123\"",
"\" 🔐 Wallet Features:\"",
"\" - AWS Credentials: ✅\"",
"\" - AI Keys: ✅\"",
"\" - Solana Keys: ✅\"",
"\" - Export/Import: ✅\"",
"\" - Encryption: ✅\"",
"\" ✅ Wallet integration tests passed\"",
"\"\\n🪞 Testing Self Analysis...\"",
"\"test_runner.rs\"",
"\"test_runner.rs\"",
"\" 🔍 Self-Analysis Results:\"",
"\" - Functions Found: {}\"",
"\" - Total Lines: {}\"",
"\" - Complexity Score: {:.2}\"",
"\" - Ecosystem Size: {}\"",
"\" 🎭 Generated Memes:\"",
"\" ✅ Self analysis tests passed\""
],
"top_level_nodes": 1,
"total_nodes": 1566,
"type_counts": {
"angle_bracketed": 14,
"args": 66,
"arguments": 14,
"array": 1,
"base": 1,
"body": 1,
"bounds": 7,
"call": 23,
"delimiter": 96,
"dyn": 7,
"elems": 15,
"expr": 79,
"field": 1,
"float": 3,
"fn": 7,
"for_loop": 1,
"func": 23,
"group": 35,
"ident": 355,
"index": 4,
"init": 30,
"inputs": 7,
"int": 7,
"items": 1,
"let": 30,
"lit": 107,
"macro": 61,
"method": 29,
"method_call": 29,
"mut": 6,
"op": 136,
"output": 7,
"pat": 32,
"path": 148,
"punct": 136,
"receiver": 29,
"reference": 6,
"segments": 146,
"semi_token": 58,
"spacing": 136,
"stmts": 7,
"str": 14,
"stream": 35,
"tokens": 61,
"trait": 7,
"trait_object": 7,
"tree": 3,
"try": 18,
"tuple": 14,
"ty": 1,
"type": 22,
"use": 1
},
"word_counts": {
"0": 6,
"1": 18,
"128": 1,
"1e": 2,
"2": 5,
"3": 3,
"5": 3,
"6": 1,
"_": 1,
"ai": 1,
"akiatest": 1,
"all": 1,
"analysis": 8,
"at": 2,
"aws": 1,
"be": 1,
"blue": 2,
"code": 4,
"collections": 1,
"color": 2,
"completed": 1,
"complexity": 2,
"comprehensive": 1,
"coverage": 2,
"credentials": 1,
"declaration": 3,
"declarations": 2,
"detection": 3,
"display": 4,
"duplicate": 4,
"duplicates": 1,
"ecosystem": 1,
"encryption": 1,
"enum": 2,
"export": 1,
"f64": 8,
"features": 1,
"fibonacci": 3,
"file1": 1,
"file2": 1,
"file3": 1,
"find": 6,
"fn": 7,
"for": 1,
"found": 1,
"func1": 1,
"func2": 1,
"functions": 3,
"generated": 1,
"generation": 1,
"green": 2,
"groups": 1,
"hash": 1,
"hello": 5,
"impl": 1,
"import": 1,
"integration": 3,
"keys": 2,
"least": 2,
"lines": 1,
"main": 1,
"main_wallet": 1,
"map": 1,
"match": 1,
"meme": 1,
"memes": 1,
"n": 48,
"nenum": 1,
"new": 1,
"nfn": 2,
"nimpl": 2,
"normalized": 1,
"not": 1,
"nstruct": 2,
"ntrait": 1,
"nuse": 1,
"openai": 2,
"passed": 6,
"point": 6,
"println": 6,
"red": 2,
"report": 2,
"results": 2,
"rs": 8,
"runner": 1,
"savings": 1,
"score": 1,
"secret_key_test": 1,
"self": 11,
"should": 7,
"similarity": 1,
"size": 1,
"sk": 1,
"solana": 1,
"solfunmeme": 1,
"splitting": 3,
"std": 1,
"struct": 2,
"structs": 1,
"successfully": 1,
"sum": 1,
"test": 6,
"test123": 1,
"test_password_123": 2,
"test_private_key": 1,
"test_runner": 2,
"testing": 6,
"tests": 8,
"total": 2,
"trait": 1,
"u32": 2,
"unique": 3,
"vector": 1,
"vectorization": 3,
"wallet": 4,
"world": 1,
"x": 6,
"y": 6
},
"word_emoji_counts": {
"0️⃣": 6,
"1️⃣": 18,
"2️⃣": 5,
"3️⃣": 3,
"5️⃣": 3,
"6️⃣": 1,
"⬜": 1,
"🎯": 1,
"🎲": 2,
"🏛️🧱": 2,
"🔍": 8,
"🔨": 1,
"🦀⚙️": 7,
"🧩": 1
}
},
"timestamp": 1751588237
}