mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-23 06:16:43 +00:00
test: test_closed.diff test_new.diff
This commit is contained in:
parent
de37f375ca
commit
ef064d7382
@ -538,3 +538,29 @@ index 0000000..d340f6a
|
|||||||
- * labels: urgent
|
- * labels: urgent
|
||||||
- */
|
- */
|
||||||
-}
|
-}
|
||||||
|
diff --git a/tests/package.move b/tests/package.move
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..d340f6a
|
||||||
|
--- a/src/package.move
|
||||||
|
+++ b/src/package.move
|
||||||
|
@@ -0,0 +1,20 @@
|
||||||
|
-module coin::coin {
|
||||||
|
- // TODO: Test this
|
||||||
|
- // Do it
|
||||||
|
- // labels: urgent
|
||||||
|
-
|
||||||
|
- /// TODO: Natspec comment
|
||||||
|
- /// Do it
|
||||||
|
- /// labels: urgent
|
||||||
|
-
|
||||||
|
- /*
|
||||||
|
- TODO: Test this too
|
||||||
|
- Do it ASAP
|
||||||
|
- labels: urgent
|
||||||
|
- */
|
||||||
|
-
|
||||||
|
- /**
|
||||||
|
- * TODO: And this too
|
||||||
|
- * labels: urgent
|
||||||
|
- */
|
||||||
|
-}
|
||||||
@ -563,3 +563,26 @@ index 0000000..d340f6a
|
|||||||
+ * labels: urgent
|
+ * labels: urgent
|
||||||
+ */
|
+ */
|
||||||
+}
|
+}
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/package.move
|
||||||
|
@@ -0,0 +1,20 @@
|
||||||
|
+module coin::coin {
|
||||||
|
+ // TODO: Test this
|
||||||
|
+ // Do it
|
||||||
|
+ // labels: urgent
|
||||||
|
+
|
||||||
|
+ /// TODO: Natspec comment
|
||||||
|
+ /// Do it
|
||||||
|
+ /// labels: urgent
|
||||||
|
+
|
||||||
|
+ /*
|
||||||
|
+ TODO: Test this too
|
||||||
|
+ Do it ASAP
|
||||||
|
+ labels: urgent
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
+ /**
|
||||||
|
+ * TODO: And this too
|
||||||
|
+ * labels: urgent
|
||||||
|
+ */
|
||||||
|
+}
|
||||||
@ -128,6 +128,9 @@ class NewIssueTest(unittest.TestCase):
|
|||||||
def test_lua_issues(self):
|
def test_lua_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'lua'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'lua'), 2)
|
||||||
|
|
||||||
|
def test_move_issues(self):
|
||||||
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'move'), 4)
|
||||||
|
|
||||||
|
|
||||||
class CustomOptionsTest(unittest.TestCase):
|
class CustomOptionsTest(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
@ -305,6 +308,9 @@ class ClosedIssueTest(unittest.TestCase):
|
|||||||
def test_lua_issues(self):
|
def test_lua_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'lua'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'lua'), 2)
|
||||||
|
|
||||||
|
def test_move_issues(self):
|
||||||
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'move'), 4)
|
||||||
|
|
||||||
class IgnorePatternTest(unittest.TestCase):
|
class IgnorePatternTest(unittest.TestCase):
|
||||||
def test_single_ignore(self):
|
def test_single_ignore(self):
|
||||||
os.environ['INPUT_IGNORE'] = '.*\\.java'
|
os.environ['INPUT_IGNORE'] = '.*\\.java'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user