mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-12 19:55:14 +02:00
refactor(dynamic): add multi-method support to RouteShape, update framework bindings, and improve test coverage
This commit is contained in:
parent
4bcdec3a1b
commit
ca075a7141
55 changed files with 524 additions and 215 deletions
|
|
@ -128,8 +128,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn fires_on_md5() {
|
||||
let src: &[u8] =
|
||||
b"<?php\nfunction sign($value) {\n return md5($value);\n}\n";
|
||||
let src: &[u8] = b"<?php\nfunction sign($value) {\n return md5($value);\n}\n";
|
||||
let tree = parse_php(src);
|
||||
let summary = FuncSummary {
|
||||
name: "sign".into(),
|
||||
|
|
@ -180,8 +179,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn skips_when_sha256_hashing_present() {
|
||||
let src: &[u8] =
|
||||
b"<?php\nfunction sign($value) {\n return hash('sha256', $value);\n}\n";
|
||||
let src: &[u8] = b"<?php\nfunction sign($value) {\n return hash('sha256', $value);\n}\n";
|
||||
let tree = parse_php(src);
|
||||
let summary = FuncSummary {
|
||||
name: "sign".into(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue