Skip to content

Commit

Permalink
Add PRs to tests, adjust (almost) all tests to respect that
Browse files Browse the repository at this point in the history
  • Loading branch information
JoJoDeveloping committed Mar 10, 2021
1 parent f8895cd commit d1ffab7
Show file tree
Hide file tree
Showing 7 changed files with 260 additions and 201 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
6;"Distinguish directedness of networks and edge-construction algorithm";"[""issue"", ""bug"", ""enhancement""]";"open";"[]";"2016-07-12 14:30:13";"";"[]";"subscribed";"Björn";"[email protected]";"2016-12-07 15:30:02";"udo";"""[email protected]"""
6;"Distinguish directedness of networks and edge-construction algorithm";"[""issue"", ""bug"", ""enhancement""]";"open";"[]";"2016-07-12 14:30:13";"";"[]";"labeled";"Olaf";"[email protected]";"2017-05-23 12:31:34";"decided";""""""
6;"Distinguish directedness of networks and edge-construction algorithm";"[""issue"", ""bug"", ""enhancement""]";"open";"[]";"2016-07-12 14:30:13";"";"[]";"commented";"Björn";"[email protected]";"2017-05-23 12:32:39";"open";"[]"
"1";"Example pull request 1";"[""pull request""]";"closed";"[]";"2016-07-12 15:59:25";"2017-01-01 01:01:01";"[]";"created";"Thomas";"[email protected]";"2016-07-12 15:59:25";"open";"[]"
"1";"Example pull request 1";"[""pull request""]";"closed";"[]";"2016-07-14 13:37:00";"2017-01-01 01:01:01";"[]";"created";"Thomas";"[email protected]";"2016-07-12 15:59:25";"open";"[]"
"1";"Example pull request 1";"[""pull request""]";"closed";"[]";"2016-07-14 13:37:00";"2017-01-01 01:01:01";"[]";"commented";"Thomas";"[email protected]";"2016-07-12 15:59:25";"open";"[]"
"1";"Example pull request 1";"[""pull request""]";"closed";"[]";"2016-07-14 13:37:00";"2017-01-01 01:01:01";"[]";"state_updated";"Thomas";"[email protected]";"2016-07-12 15:59:59";"closed";"""open"""
"1";"Example pull request 1";"[""pull request""]";"closed";"[]";"2016-07-14 13:37:00";"2017-01-01 01:01:01";"[]";"commented";"Olaf";"[email protected]";"2016-07-12 16:01:01";"open";"[]"
"1";"Example pull request 1";"[""pull request""]";"closed";"[]";"2016-07-14 13:37:00";"2017-01-01 01:01:01";"[]";"commented";"Björn";"[email protected]";"2016-07-12 16:06:01";"open";"[]"
"1";"Example pull request 1";"[""pull request""]";"closed";"[]";"2016-07-14 13:37:00";"2017-01-01 01:01:01";"[]";"state_updated";"Thomas";"[email protected]";"2016-07-12 15:59:59";"closed";"""open"""
"1";"Example pull request 1";"[""pull request""]";"closed";"[]";"2016-07-14 13:37:00";"2017-01-01 01:01:01";"[]";"state_updated";"Olaf";"[email protected]";"2016-07-14 13:37:00";"closed";"""open"""
"2";"Example pull request 2";"[""pull request""]";"closed";"[]";"2016-07-12 14:59:25";"2017-01-01 01:01:01";"[]";"created";"Björn";"[email protected]";"2016-07-12 14:59:25";"open";"[]"
"2";"Example pull request 2";"[""pull request""]";"closed";"[]";"2016-07-12 14:59:25";"2017-01-01 01:01:01";"[]";"commented";"Björn";"[email protected]";"2016-07-12 14:59:25";"open";"[]"
Expand Down
28 changes: 15 additions & 13 deletions tests/test-networks-bipartite.R
Original file line number Diff line number Diff line change
Expand Up @@ -266,30 +266,32 @@ test_that("Construction of the bipartite network for the feature artifact with a
type = TYPE.AUTHOR
)
artifacts = data.frame(
name = c("<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-332>", "<issue-github-6>", "<issue-github-3>"),
name = c("<issue-jira-ZEPPELIN-328>", "<issue-github-2>", "<issue-jira-ZEPPELIN-332>", "<issue-github-1>", "<issue-github-6>", "<issue-github-3>", "<issue-github-4>"),
kind = "Issue",
type = TYPE.ARTIFACT
)
vertices = plyr::rbind.fill(authors, artifacts)

## 2) construct expected edge attributes (issues ordered by 'author.name')
network.expected.data = data.frame(
from = c("Björn", "Björn", "Björn", "Björn", "Björn", "Björn", "Björn", "Björn", "Björn", "Karl", "Max",
"Max", "Max", "Olaf", "Olaf", "Olaf", "Olaf", "Thomas", "Thomas"),
from = c("Björn", "Björn", "Björn", "Björn", "Björn", "Björn", "Björn", "Björn", "Björn", "Björn", "Björn", "Karl", "Max",
"Max", "Max", "Olaf", "Olaf", "Olaf", "Olaf", "Olaf", "Olaf", "Thomas", "Thomas", "Thomas"),
to = c("<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>",
"<issue-jira-ZEPPELIN-332>", "<issue-jira-ZEPPELIN-332>", "<issue-github-6>", "<issue-github-3>", "<issue-jira-ZEPPELIN-332>", "<issue-jira-ZEPPELIN-332>", "<issue-jira-ZEPPELIN-332>",
"<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-github-6>"),
date = get.date.from.string(c("2013-05-05 21:46:30", "2013-05-05 21:49:21", "2013-05-05 21:49:34",
"<issue-github-2>", "<issue-jira-ZEPPELIN-332>", "<issue-github-1>", "<issue-jira-ZEPPELIN-332>", "<issue-github-6>", "<issue-github-3>", "<issue-jira-ZEPPELIN-332>", "<issue-jira-ZEPPELIN-332>", "<issue-jira-ZEPPELIN-332>",
"<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-github-1>", "<issue-github-4>", "<issue-jira-ZEPPELIN-328>", "<issue-github-1>", "<issue-github-6>"),
date = get.date.from.string(c("2013-05-05 21:46:30", "2013-05-05 21:49:21", "2013-05-05 21:49:34", # Björn
"2013-05-06 01:04:34", "2013-05-25 03:48:41", "2013-05-25 04:08:07",
"2016-07-12 16:02:30", "2016-07-15 19:55:39", "2017-05-23 12:32:39",
"2016-07-12 15:59:59", "2016-07-15 20:07:47", "2016-07-27 20:12:08",
"2016-07-28 06:27:52", "2013-05-25 03:25:06", "2013-05-25 06:06:53",
"2013-05-25 06:22:23", "2013-06-01 06:50:26", "2013-04-21 23:52:09",
"2016-07-12 16:03:59")),
"2016-07-12 14:59:25", "2016-07-12 16:02:30", "2016-07-12 16:06:01",
"2016-07-15 19:55:39", "2017-05-23 12:32:39",
"2016-07-12 15:59:59", #Karl
"2016-07-15 20:07:47", "2016-07-27 20:12:08", "2016-07-28 06:27:52", # Max
"2013-05-25 03:25:06", "2013-05-25 06:06:53", "2013-05-25 06:22:23",
"2013-06-01 06:50:26", "2016-07-12 16:01:01", "2016-07-12 16:02:02", # Olaf
"2013-04-21 23:52:09", "2016-07-12 15:59:25", "2016-07-12 16:03:59")), # Thomas
artifact.type = "IssueEvent",
issue.id = c("<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>",
"<issue-jira-ZEPPELIN-332>", "<issue-jira-ZEPPELIN-332>", "<issue-github-6>", "<issue-github-3>", "<issue-jira-ZEPPELIN-332>", "<issue-jira-ZEPPELIN-332>", "<issue-jira-ZEPPELIN-332>",
"<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-github-6>"),
"<issue-github-2>", "<issue-jira-ZEPPELIN-332>", "<issue-github-1>", "<issue-jira-ZEPPELIN-332>", "<issue-github-6>", "<issue-github-3>", "<issue-jira-ZEPPELIN-332>", "<issue-jira-ZEPPELIN-332>", "<issue-jira-ZEPPELIN-332>",
"<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-jira-ZEPPELIN-328>", "<issue-github-1>", "<issue-github-4>", "<issue-jira-ZEPPELIN-328>", "<issue-github-1>", "<issue-github-6>"),
event.name = "commented",
weight = 1,
type = TYPE.EDGES.INTER,
Expand Down
Loading

0 comments on commit d1ffab7

Please sign in to comment.