Skip to content

Mini Optimization: Avoid stating the file twice #512

Mini Optimization: Avoid stating the file twice

Mini Optimization: Avoid stating the file twice #512

GitHub Actions / Unit Tests macOS-latest stable failed Sep 6, 2024 in 0s

165 passed, 1 failed and 2 skipped

Tests failed

❌ test-results.json

168 tests were completed in 171s with 165 passed, 1 failed and 2 skipped.

Test suite Passed Failed Skipped Time
test/async_repo_test.dart 1✅ 479ms
test/blob_ctime_builder_test.dart 1✅ 567ms
test/branch_test.dart 1✅ 432ms
test/commands/commit_test.dart 2✅ 21s
test/commands/merge_delete_test.dart 1✅ 5s
test/commands/merge_test.dart 3✅ 17s
test/commands/reset_test.dart 1❌ 30s
test/commands/single_commands_test.dart 27✅ 72s
test/commit_test.dart 2✅ 802ms
test/config_test.dart 3✅ 137ms
test/diff_commit_test.dart 1✅ 414ms
test/file_mtime_builder_test.dart 1✅ 559ms
test/git_hash_test.dart 2✅ 100ms
test/git_test.dart 1✅ 135ms
test/git_url_parse_test.dart 29✅ 95ms
test/idx_file_test.dart 4✅ 173ms
test/index_test.dart 8✅ 223ms
test/is_ssh_url_test.dart 24✅ 139ms
test/merge_base_test.dart 23✅ 244ms
test/packfile_test.dart 4✅ 353ms
test/plumbing/commit_iterator_bfs_filtered_test.dart 5✅ 123ms
test/plumbing/commit_iterator_test.dart 2✅ 108ms
test/plumbing/ignore_test.dart 1✅ 65ms
test/plumbing/objects/blob_test.dart 1✅ 126ms
test/plumbing/objects/commit_test.dart 5✅ 154ms
test/plumbing/objects/kvlm_test.dart 3✅ 76ms
test/plumbing/objects/tree_test.dart 1✅ 141ms
test/plumbing/pack_file_delta_test.dart 2⚪ 1ms
test/utils/date_time_test.dart 9✅ 147ms

✅ test/async_repo_test.dart

✅ Basic

✅ test/blob_ctime_builder_test.dart

✅ Basic

✅ test/branch_test.dart

✅ Branch with a /

✅ test/commands/commit_test.dart

✅ Commit all Initial Repo Test - Single File
✅ Sort directories

✅ test/commands/merge_delete_test.dart

✅ merge del2

✅ test/commands/merge_test.dart

✅ merge fast-forward
✅ merge up-to-date
✅ merge merge-conflict -X ours

❌ test/commands/reset_test.dart

❌ reset --hard HEAD^
	TimeoutException after 0:00:30.000000: Test timed out after 30 seconds. See https://pub.dev/packages/test#timeouts

✅ test/commands/single_commands_test.dart

✅ branch
✅ branch test
✅ branch -a
✅ write-tree
✅ rm LICENSE
✅ diff-tree 938c320fd826711ab4e3f5db5cf2f4557ff75522
✅ diff-tree 6216f82ecd10cac78c2b90ddcc4d0d9dc6f3d711
✅ rm does-not-exist
✅ branch -d not-existing
✅ branch master
✅ rm /outside-rep
✅ checkout 1 file
✅ git rm deleted file
✅ git delete branch
✅ git upstream branch
✅ git remote
✅ git checkout remote branch
✅ git checkout branch
✅ reset --hard
✅ reset --hard
✅ checkout 1 file
✅ git rm deleted file
✅ git delete branch
✅ git upstream branch
✅ git remote
✅ git checkout remote branch
✅ git checkout branch

✅ test/commit_test.dart

✅ fixture mtime
✅ fixture merge

✅ test/config_test.dart

✅ Config Branches Test
✅ Config Serialization
✅ ConfigFile Serialization

✅ test/diff_commit_test.dart

✅ Duplicate Tree Object

✅ test/file_mtime_builder_test.dart

✅ Basic

✅ test/git_hash_test.dart

✅ Equality
✅ Zero Equality

✅ test/git_test.dart

✅ Test can Push

✅ test/git_url_parse_test.dart

all
  ✅ ssh://[email protected]:42/path/to/repo.git/
  ✅ git+ssh://[email protected]/path/name.git
  ✅ ssh://[email protected]/path/to/repo.git/
  ✅ ssh://host.xz:5497/path/to/repo.git/
  ✅ ssh://host.xz/path/to/repo.git/
  ✅ [email protected]:42foo/bar.git
  ✅ ssh://[email protected]/~user/path/to/repo.git/
  ✅ ssh://host.xz/~user/path/to/repo.git/
  ✅ ssh://[email protected]/~/path/to/repo.git
  ✅ ssh://host.xz/~/path/to/repo.git
  ✅ [email protected]:/path/to/repo.git/
  ✅ [email protected]:~user/path/to/repo.git/
  ✅ [email protected]:path/to/repo.git
  ✅ rsync://host.xz/path/to/repo.git/
  ✅ git://host.xz/path/to/repo.git/
  ✅ git://host.xz/~user/path/to/repo.git/
  ✅ http://host.xz/path/to/repo.git/
  ✅ https://host.xz/path/to/repo.git/
  ✅ https://token:[email protected]/path/to/repo.git/
  ✅ https://x-token-auth:[email protected]/path/to/repo.git/
  ✅ https://[email protected]/user/repo
  ✅ https://[email protected]/name.git
  ✅ https://token:[email protected]/owner/name.git
  ✅ https://x-token-auth:[email protected]/owner/name.git
  ✅ /path/to/repo.git/
  ✅ path/to/repo.git/
  ✅ ~/path/to/repo.git
  ✅ file:///path/to/repo.git/
  ✅ [email protected]:path/name.git

✅ test/idx_file_test.dart

✅ IdxFile Parser
✅ IdxFile Parser 64bit
✅ Idx file serialize
✅ Idx file 64 bit serialize

✅ test/index_test.dart

✅ Decode
✅ Decode Entries
✅ Decode Cache Tree Extension
✅ Serialize
✅ Decode Merge Conflict
✅ End of index entry
✅ Decode go-git-fixtures indexes
✅ decode v4

✅ test/is_ssh_url_test.dart

all
  ✅ ssh://[email protected]:port/path/to/repo.git/
  ✅ ssh://[email protected]/path/to/repo.git/
  ✅ ssh://host.xz:port/path/to/repo.git/
  ✅ ssh://host.xz/path/to/repo.git/
  ✅ ssh://[email protected]/~user/path/to/repo.git/
  ✅ ssh://host.xz/~user/path/to/repo.git/
  ✅ ssh://[email protected]/~/path/to/repo.git
  ✅ ssh://host.xz/~/path/to/repo.git
  ✅ [email protected]:/path/to/repo.git/
  ✅ [email protected]:~user/path/to/repo.git/
  ✅ [email protected]:path/to/repo.git
  ✅ host.xz:/path/to/repo.git/
  ✅ host.xz:path/to/repo.git
  ✅ host.xz:~user/path/to/repo.git/
  ✅ rsync://host.xz/path/to/repo.git/
  ✅ git://host.xz/path/to/repo.git/
  ✅ git://host.xz/~user/path/to/repo.git/
  ✅ http://host.xz/path/to/repo.git/
  ✅ https://host.xz/path/to/repo.git/
  ✅ /path/to/repo.git/
  ✅ path/to/repo.git/
  ✅ ~/path/to/repo.git
  ✅ file:///path/to/repo.git/
  ✅ file://~/path/to/repo.git/

✅ test/merge_base_test.dart

MergeBase
  ✅ NoAncestorsWhenNoCommonHistory
  ✅ CommonAncestorInMergedOrphans
  ✅ MergeBaseWithSelf
  ✅ MergeBaseWithAncestor
  ✅ DoubleCommonAncestorInCrossMerge
  ✅ DoubleCommonInSubFeatureBranches
Independents
  ✅ OnlyOne
  ✅ OnlyRepeated
  ✅ RepeatedAncestors
  ✅ BeyondShortcut
  ✅ BeyondShortcutBis
  ✅ PairOfAncestors
  ✅ AcrossCrossMerges
  ✅ ChangingOrderRepetition
  ✅ ChangingOrder
  ✅ ParentChild
Ancestor
  ✅ OnlyOne
  ✅ OnlyOneRev
  ✅ BeyondMerges
  ✅ BeyondMergesRev
  ✅ AncestorSame
  ✅ AncestorUnrelated
  ✅ AncestorUnrelatedRev

✅ test/packfile_test.dart

✅ Packfile
✅ Packfile with deltas
✅ Packfile with deltas 2
✅ Packfile with Ref Delta

✅ test/plumbing/commit_iterator_bfs_filtered_test.dart

✅ Basic
✅ Filter All But One
✅ Filter All
✅ isLimit
✅ isValid and isLimit

✅ test/plumbing/commit_iterator_test.dart

✅ BFS
✅ PreOrder

✅ test/plumbing/ignore_test.dart

✅ TestSimpleMatch_inclusion

✅ test/plumbing/objects/blob_test.dart

✅ Reads the blob file correctly

✅ test/plumbing/objects/commit_test.dart

✅ Git Commit
✅ Commit with GPG
✅ Author Parse
✅ Author Serialize
✅ Author Serialize negative

✅ test/plumbing/objects/kvlm_test.dart

✅ Parses KVLM Properly
✅ Parse test commit
✅ Parse empty

✅ test/plumbing/objects/tree_test.dart

✅ Reads the tree file correctly

✅ test/plumbing/pack_file_delta_test.dart

⚪ AddDelta
⚪ IncompleteDelta

✅ test/utils/date_time_test.dart

✅ timeZoneOffset
✅ millisecondsSinceEpoch
✅ microsecondsSinceEpoch
✅ secondsSinceEpoch
✅ toUTC
✅ Parse
Constructors
  ✅ Default
  ✅ Default, only year argument
  ✅ from DateTime