MCPcopy
hub / github.com/gitless-vcs/gitless / test_status_all

Method test_status_all

gitless/tests/test_core.py:435–449  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

433class TestFileStatus(TestFile):
434
435 def test_status_all(self):
436 st_all = self.curr_b.status()
437 for fp, f_type, exists_at_head, exists_in_wd, modified, _ in st_all:
438 if (fp == UNTRACKED_FP or fp == UNTRACKED_FP_WITH_SPACE or
439 fp == UNTRACKED_DIR_FP or fp == UNTRACKED_DIR_FP_WITH_SPACE or
440 fp == UNTRACKED_DIR_DIR_FP or
441 fp == UNTRACKED_DIR_DIR_FP_WITH_SPACE):
442 self.__assert_type(fp, core.GL_STATUS_UNTRACKED, f_type)
443 self.__assert_field(fp, 'exists_at_head', False, exists_at_head)
444 self.__assert_field(fp, 'modified', True, modified)
445 elif fp == '.gitignore':
446 self.__assert_type(fp, core.GL_STATUS_UNTRACKED, f_type)
447 self.__assert_field(fp, 'exists_at_head', False, exists_at_head)
448 self.__assert_field(fp, 'modified', True, modified)
449 self.__assert_field(fp, 'exists_in_wd', True, exists_in_wd)
450
451 def test_status_equivalence(self):
452 for f_st in self.curr_b.status():

Callers

nothing calls this directly

Calls 3

__assert_typeMethod · 0.95
__assert_fieldMethod · 0.95
statusMethod · 0.80

Tested by

no test coverage detected