Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Test empty children as well

Add remaining test coverage for SnapshotUtil

    • -0
    • +100
    ./groovy/org/gradle/internal/snapshot/SnapshotUtilTest.groovy
  1. … 5 more files in changeset.
Add Javadoc for FileSystemNode.getSnapshot()

  1. … 1 more file in changeset.
Add tests for CompleteDirectorySnapshot

Extract superclass AbstractSnapshotWithChildrenTest

Add tests for complete snapshots without children

Inline getSelectedChildSnapshot

The method is now so easy that it is not necessary any more.

Rename test fixtures

Merge branch 'master'

  1. … 5 more files in changeset.
Rename compare{WithCommonPrefix -> FirstSegment}

since that is what the method does: comparing the first segment of two

paths.

  1. … 2 more files in changeset.
Address more review comments

  1. … 1 more file in changeset.
Separate MetadataSnapshot from FileSystemNode

A `FileSystemNode` has a `MetadataSnapshot`, though it normally isn't an

`MetadataSnapshot`. Currently, `CompleteFileSystemSnapshot`s are both

`MetadataSnapshot`s and `FileSystemNode`s.

At some point in the future we should separate the child structure

(aka `FileSystemNode`) from the stored values (aka `MetadataSnapshot`)

for `CompleteFileSystemSnapshot`s as well, which means also removing the

children from `CompleteDirectorySnapshot`.

  1. … 10 more files in changeset.
Inline VirtualFileSystemTestFixture

Use Comparable in SearchUtil

This requires to turn around the compareWithCommonPrefix function to

make it consistent with they way it is used in `binarySearch`

  1. … 3 more files in changeset.
Address more review feedback

  1. … 3 more files in changeset.
Create class for absolutePath + offset

  1. … 11 more files in changeset.
Create class for absolutePath + offset

  1. … 11 more files in changeset.
Remove compareToPrefix

and use compareWithCommonPrefix instead.

  1. … 2 more files in changeset.
Remove `compareToPrefix`

since the resulting compare function is not symmetric, since if path1

is an actual prefix of path2, the converse is not true. Using

`compareWithCommonPrefix` works as good.

  1. … 2 more files in changeset.
Clarify methods in PathUtil

by renaming/adding better Javadoc

  1. … 3 more files in changeset.
Add static import for CaseSensitivity.*

  1. … 3 more files in changeset.
Special case 0 and 1 elements in binarySearch

    • -0
    • +41
    ./groovy/org/gradle/internal/snapshot/SearchUtilTest.groovy
  1. … 1 more file in changeset.
Inline field

Pass CaseSensitivity to DefaultVirtualFileSystem

for better readability.

  1. … 4 more files in changeset.
Use CaseSensitivity for all methods in PathUtil

  1. … 1 more file in changeset.
Fix test

Fix test

Fix test

Add more Javadoc

  1. … 5 more files in changeset.
Move tests from PathUtil test to case sensitive classes