Skip to content

Commit

Permalink
How to determine the method names of changed methods (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored May 31, 2024
1 parent 796a1bd commit e85036c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,14 @@ By default, `defects4j query` returns information on active bugs. The `[-D]`
flag returns information only on deprecated bugs, while the `[-A]` flag returns
information for all active and deprecated bugs.

To determine the methods that are changed between the buggy and fixed version of the code:

1. Add this line to your user-level git attributes file:
`*.java diff=java`

2. Run `git diff --no-index`, for example `git diff --no-index /tmp/lang_1_buggy /tmp/lang_1_fixed`.
In the output, every line starting with "@" gives the method name of a changed method.


Test execution framework
--------------------------
Expand Down

0 comments on commit e85036c

Please sign in to comment.