ASSERT-KTH / pankti

Generating tests from production workloads http://arxiv.org/pdf/2012.01198
MIT License
16 stars 6 forks source link

The header of invoked-methods.csv still seems incorrect #20

Closed gluckzhang closed 4 years ago

gluckzhang commented 4 years ago

Though commit a93e7f5 tries to fix the problem, it seems that the header is still incorrect. An example of the invoked-methods.csv in HedWig experiments:

visibility parent-FQN method-name param-list return-type local-variables conditionals multiple-statements loops parameters returns switches ifs static returns-primitives classification
not-covered False False False False getDnsServers False False com.hs.mail.dns.DnsServer java.lang.String[] True False False False public
not-covered False True True True readLine True False com.hs.mail.io.LineReader java.lang.String True False False True public
not-covered False True True False getHost True False com.hs.mail.smtp.message.MailAddress java.lang.String True False False False public
not-covered False True False False compareTo False java.lang.Object True com.hs.mail.smtp.message.MailAddress int True True False False public
not-covered True True True False rewriteAddress True java.lang.String True com.hs.mail.imap.user.DefaultUserManager java.lang.String True False False False public
not-covered False False True False mapRow True "java.sql.ResultSet int" True com.hs.mail.imap.dao.AnsiUserDao$1 com.hs.mail.imap.user.User True False False False public
not-covered False False True False getUserByAddress True java.lang.String True com.hs.mail.imap.dao.AnsiUserDao com.hs.mail.imap.user.User True False False False public
not-covered False False True False getUserByAddress True java.lang.String True com.hs.mail.imap.user.DefaultUserManager com.hs.mail.imap.user.User True False False False public
not-covered True True True False getUser True False com.hs.mail.smtp.message.MailAddress java.lang.String True False False False public
not-covered True False True False getUserHome True com.hs.mail.smtp.message.MailAddress True com.hs.mail.imap.user.DefaultUserManager java.io.File True False False False public
not-covered False True True False login True "java.lang.String java.lang.String" True com.hs.mail.imap.user.DefaultUserManager long True True False False public
gluckzhang commented 4 years ago

By the way, this bug also leads pankti-generate to generate zero test cases for the target project.

Deee92 commented 4 years ago

Thanks, @gluckzhang, looking into this!

gluckzhang commented 4 years ago

Figure out this is because the version of pandas. In the future, we may need to have a requirements.txt that lists all of the Python packages we are using. Users can use pip install -r requirements.txt to install the same version of the packages.