Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for dirNameFor (0.16 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/Sample.java

            }
            if (sampleName != null) {
                return testFile(dirNameFor(sampleName));
            }
            return null;
        }
    
        /**
         * Shortens path as much as possible to prevent long path issues on Windows
         * by keeping the last segment only, ignoring /groovy or /kotlin suffix.
         */
        @VisibleForTesting
        static String dirNameFor(String sampleName) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/SampleRuleTest.groovy

    import spock.lang.Specification
    
    class SampleRuleTest extends Specification {
    
        def "test directory for sample '#sampleName' is '#dirName'"() {
    
            expect:
            Sample.dirNameFor(sampleName) == dirName
    
            where:
            sampleName                  | dirName
            "simple"                    | "simple"
            "simple/"                   | "simple"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top