mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
parent
f088719c52
commit
4fcac8cc35
@ -278,18 +278,16 @@ index 525e25d..ba4e68d 100644
|
|||||||
-TODO: Create an issue for TODO
|
-TODO: Create an issue for TODO
|
||||||
--}
|
--}
|
||||||
-sum a b = a + b
|
-sum a b = a + b
|
||||||
|
|
||||||
diff --git a/tests/config.json5 b/tests/config.json5
|
diff --git a/tests/config.json5 b/tests/config.json5
|
||||||
index 0000000..525e25d 100644
|
index 0000000..525e25d 100644
|
||||||
--- a/tests/config.json5
|
--- a/tests/config.json5
|
||||||
+++ b/tests/config.json5
|
+++ b/tests/config.json5
|
||||||
@@ -0,0 +0,1 @@
|
@@ -0,0 +0,1 @@
|
||||||
- // TODO: Delete this line from the codebase
|
- // TODO: Delete this line from the codebase
|
||||||
|
diff --git a/tests/example.clj b/tests/example.clj
|
||||||
diff·--git·a/tests/example.clj·b/tests/example.clj
|
index 0000000..525e25d 100644
|
||||||
index·0000000..525e25d·100644
|
--- a/tests/example.clj
|
||||||
---·a/tests/example.clj
|
+++ b/tests/example.clj
|
||||||
+++·b/tests/example.clj
|
|
||||||
@@ -1,8 +0,0 @@
|
@@ -1,8 +0,0 @@
|
||||||
-(ns example)
|
-(ns example)
|
||||||
-
|
-
|
||||||
|
|||||||
@ -306,12 +306,11 @@ index 0000000..525e25d
|
|||||||
+ "butItHasSomePendingActivities"
|
+ "butItHasSomePendingActivities"
|
||||||
+ ]
|
+ ]
|
||||||
+}
|
+}
|
||||||
|
diff --git a/tests/example.clj b/tests/example.clj
|
||||||
diff·--git·a/tests/example.clj·b/tests/example.clj
|
new file mode 100644
|
||||||
new·file·mode·100644
|
index 0000000..525e25d
|
||||||
index·0000000..525e25d
|
--- /dev/null
|
||||||
---·/dev/null
|
+++ b/tests/example.clj
|
||||||
+++·b/tests/example.clj
|
|
||||||
@@ -0,0 +1,8 @@
|
@@ -0,0 +1,8 @@
|
||||||
+(ns example)
|
+(ns example)
|
||||||
+
|
+
|
||||||
|
|||||||
@ -76,6 +76,9 @@ class NewIssueTests(unittest.TestCase):
|
|||||||
def test_haskell_issues(self):
|
def test_haskell_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'haskell'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'haskell'), 2)
|
||||||
|
|
||||||
|
def test_clojure_issues(self):
|
||||||
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'clojure'), 2)
|
||||||
|
|
||||||
|
|
||||||
class ClosedIssueTests(unittest.TestCase):
|
class ClosedIssueTests(unittest.TestCase):
|
||||||
# Check for removed TODOs across the files specified.
|
# Check for removed TODOs across the files specified.
|
||||||
@ -141,6 +144,9 @@ class ClosedIssueTests(unittest.TestCase):
|
|||||||
def test_haskell_issues(self):
|
def test_haskell_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'haskell'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'haskell'), 2)
|
||||||
|
|
||||||
|
def test_clojure_issues(self):
|
||||||
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'clojure'), 2)
|
||||||
|
|
||||||
|
|
||||||
class IgnorePatternTests(unittest.TestCase):
|
class IgnorePatternTests(unittest.TestCase):
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user