mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Rust: Accept more test changes.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
| Macro calls - resolved | 8 |
|
||||
| Macro calls - total | 9 |
|
||||
| Macro calls - unresolved | 1 |
|
||||
| Taint edges - number of edges | 3 |
|
||||
| Taint edges - number of edges | 4 |
|
||||
| Taint reach - nodes tainted | 0 |
|
||||
| Taint reach - per million nodes | 0 |
|
||||
| Taint sinks - cryptographic operations | 0 |
|
||||
|
||||
@@ -54,14 +54,14 @@ impl MyStruct {
|
||||
MyStruct { foo: a, bar: b }
|
||||
}
|
||||
|
||||
// MISSING: summary=repo::test;<crate::summaries::MyStruct>::get_foo;Argument[self].Struct[crate::summaries::MyStruct::foo];ReturnValue;value;dfc-generated
|
||||
// summary=repo::test;<crate::summaries::MyStruct>::get_foo;Argument[self].Struct[crate::summaries::MyStruct::foo];ReturnValue;value;dfc-generated
|
||||
pub fn get_foo(self) -> i64 {
|
||||
match self {
|
||||
MyStruct { foo, bar: _ } => foo
|
||||
}
|
||||
}
|
||||
|
||||
// MISSING: summary=repo::test;<crate::summaries::MyStruct>::get_foo;Argument[self].Struct[crate::summaries::MyStruct::bar];ReturnValue;value;dfc-generated
|
||||
// summary=repo::test;<crate::summaries::MyStruct>::get_bar;Argument[self].Struct[crate::summaries::MyStruct::bar];ReturnValue;value;dfc-generated
|
||||
pub fn get_bar(self) -> f64 {
|
||||
match self {
|
||||
MyStruct { foo: _, bar } => bar
|
||||
|
||||
Reference in New Issue
Block a user