Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/report/TestResultModelTest.groovy

     * limitations under the License.
     */
    package org.gradle.api.internal.tasks.testing.report
    
    import spock.lang.Specification
    
    class TestResultModelTest extends Specification {
        def formatsShortDurations() {
            expect:
            test(0).formattedDuration == '0s'
            test(7).formattedDuration == '0.007s'
            test(1200).formattedDuration == '1.200s'
        }
    
        def formatsLongDuration() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/TimeFormattingTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.internal.time
    
    import spock.lang.Specification
    
    class TimeFormattingTest extends Specification {
    
        def formatsShortDurations() {
            expect:
            TimeFormatting.formatDurationVeryTerse(0) == '0s'
            TimeFormatting.formatDurationVeryTerse(7) == '0.007s'
            TimeFormatting.formatDurationVeryTerse(1200) == '1.200s'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top