All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.goldin.spock.extensions.profiler.NodeData.groovy Maven / Gradle / Ivy

The newest version!
package com.github.goldin.spock.extensions.profiler

import org.spockframework.runtime.model.NodeInfo


/**
 * Sortable {@link NodeInfo} container.
 */
class NodeData implements Comparable
{
    NodeInfo method
    long     executionTime

    String description (){ "${ method.parent.name }.${ method.name }" }

    @Override
    String toString (){ "${ description() } - [${ this.executionTime }] ms" }

    @Override
    int compareTo ( NodeData o ){ o.executionTime <=> this.executionTime }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy