Skip to content

Commit

Permalink
Merge pull request #2 from JosueMolinaMorales/testing-threads-for-cre…
Browse files Browse the repository at this point in the history
…ating-mutations

Testing threads for creating mutations
  • Loading branch information
JosueMolinaMorales committed Apr 29, 2023
2 parents 8be96c4 + b64216a commit 4fbceed
Show file tree
Hide file tree
Showing 21 changed files with 728 additions and 258 deletions.
196 changes: 192 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ edition = "2021"
[dependencies]
clap = { version = "4.1.6", features = ["derive"] }
cli-table = "0.4.7"
csv = "1.2.1"
indicatif = "0.17.3"
rand = "0.8.5"
rayon = "1.7.0"
serde_json = "1.0.93"
serde = { version = "1", features = ["derive"] }
tracing = "0.1.37"
tracing-subscriber = "0.3.16"
tree-sitter = "0.20.9"
tree-sitter-kotlin = "0.2.11"
uuid = { version = "1.3.0", features = ["v4"] }
uuid = { version = "1.3.0", features = ["v4", "serde"] }
wait-timeout = "0.2.0"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions kotlin-test-projects/mutations/BuildFails.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
class Calculator {
fun calculate(operation: String, a: Int, b: Int): Int {
var result = 0
if (operation == "add") {
result = a + b
} else if (operation == "subtract") {
result = a - b
} else if (operation == "multiply") {
result = a * b
} else if (operation == "divide") {
result = a / b
}
var i = 0
while (i < 10) {
if (i % 2 == 0) {
result += i
} else {
result -= i
}

/**
AUTO GENERATED COMMENT
Mutation Operator: UnaryOperator
Line number: 29
Id: eeea3a90-506d-49c7-b0ab-219fecc09ceb,
Old Operator: ++,
New Operator: !
*/
i!
}
for (j in 1..5) {
result *= j
}
return result
}
}
Loading

0 comments on commit 4fbceed

Please sign in to comment.