Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for textWithLineEndings (0.23 sec)

  1. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingInputStreamHasherTest.groovy

        def "can normalize line endings in files (eol = '#description')"() {
            def unnormalized = file('unnormalized.txt') << content.textWithLineEndings(eol)
            def normalized = file('normalized.txt') << content.textWithLineEndings('\n')
    
            expect:
            hasher.hashContent(unnormalized).get() == hasher.hashContent(normalized).get()
    
            where:
            eol     | description
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingContentFixture.groovy

        public static final byte[] CLASS_FILE_CONTENT = [0xca, 0xfe, 0xba, 0xbe, 0x00, 0x00, 0x00, 0x37, 0x0a, 0x00] as byte[]
    
        static String textWithLineEndings(String eol) {
            return "${eol}This is a line${eol}Another line${eol}${eol}Yet another line\nAnd one more\n\nAnd yet one more${eol}${eol}"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingFileSystemLocationSnapshotHasherTest.groovy

            "java class file content" | content.CLASS_FILE_CONTENT
        }
    
        def "always calls delegate when line ending sensitivity is set to DEFAULT"() {
            def file = file('foo') << content.textWithLineEndings('\r\n')
            def delegate = Mock(LineEndingNormalizingFileSystemLocationSnapshotHasher)
            def hasher = LineEndingNormalizingFileSystemLocationSnapshotHasher.wrap(delegate, LineEndingSensitivity.DEFAULT)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingResourceHasherTest.groovy

            "java class file content" | content.CLASS_FILE_CONTENT
        }
    
        def "always calls delegate when line ending sensitivity is set to DEFAULT"() {
            def file = file('foo') << content.textWithLineEndings('\r\n')
            def delegate = Mock(ResourceHasher)
            def hasher = LineEndingNormalizingResourceHasher.wrap(delegate, LineEndingSensitivity.DEFAULT)
            def snapshotContext = snapshotContext(file)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top