Update names in FunctionCallGraps

This commit is contained in:
wechman 2022-09-23 13:08:18 +02:00
parent 9ce1ded86f
commit af1cd16d1f

View File

@ -1673,7 +1673,7 @@ BOOST_AUTO_TEST_CASE(using_for)
contract C {
using L for S;
function test() public {
function pub() public {
S memory s = S(42);
s.ext();
@ -1693,8 +1693,8 @@ BOOST_AUTO_TEST_CASE(using_for)
{"Entry", "function L.ext(struct S)"},
}},
{"C", {
{"Entry", "function C.test()"},
{"function C.test()", "function L.inr(struct S)"},
{"Entry", "function C.pub()"},
{"function C.pub()", "function L.inr(struct S)"},
}},
};
@ -1713,7 +1713,7 @@ BOOST_AUTO_TEST_CASE(user_defined_binary_operator)
}
contract C {
function test() public {
function pub() public {
Int.wrap(0) + Int.wrap(1);
}
}
@ -1726,8 +1726,8 @@ BOOST_AUTO_TEST_CASE(user_defined_binary_operator)
map<string, EdgeNames> expectedDeployedEdges = {
{"C", {
{"Entry", "function C.test()"},
{"function C.test()", "function add(Int,Int)"},
{"Entry", "function C.pub()"},
{"function C.pub()", "function add(Int,Int)"},
}},
};
@ -1746,7 +1746,7 @@ BOOST_AUTO_TEST_CASE(user_defined_unary_operator)
}
contract C {
function test() public {
function pub() public {
-Int.wrap(1);
}
}
@ -1759,8 +1759,8 @@ BOOST_AUTO_TEST_CASE(user_defined_unary_operator)
map<string, EdgeNames> expectedDeployedEdges = {
{"C", {
{"Entry", "function C.test()"},
{"function C.test()", "function sub(Int)"},
{"Entry", "function C.pub()"},
{"function C.pub()", "function sub(Int)"},
}},
};