Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 632 for getLine (0.15 sec)

  1. pkg/proxy/iptables/proxier_test.go

    					t.Errorf("got wrong error: %v (expected %q)", err, tc.error)
    				}
    			}
    		})
    	}
    }
    
    // getLine returns the line number of the caller, if possible.  This is useful in
    // tests with a large number of cases - when something goes wrong you can find
    // which case more easily.
    func getLine() int {
    	_, _, line, ok := stdruntime.Caller(1)
    	if ok {
    		return line
    	}
    	return 0
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 249.9K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionResult.java

                        .filter(pair -> pair.getDistance() < pair.getLine().length() / 2)
                        // Find the closest match
                        .min(Comparator.comparingInt(LineWithDistance::getDistance))
                        .map(LineWithDistance::getLine)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/metrics/types_util.cc

    void ExtractFileLine(const FileLineColLoc& loc,
                         tflite::metrics::ConverterErrorData::FileLoc* fileline) {
      fileline->set_filename(loc.getFilename().str());
      fileline->set_line(loc.getLine());
      fileline->set_column(loc.getColumn());
    }
    
    // Defines a child class of Location to access its protected members.
    class LocationExtractor : public Location {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/EditorReportsBuilder.kt

    }
    
    
    internal
    data class DefaultEditorPosition(
        private val line: Int,
        private val column: Int = 0
    ) : EditorPosition, Serializable {
    
        override fun getLine() = line
    
        override fun getColumn() = column
    }
    
    
    internal
    fun File.readLinesRange() =
        countLines().let { count ->
            if (count == 0L) 0..0L
            else 1..count
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:30:55 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/KotlinDslScriptsModelBuilder.kt

    }
    
    
    internal
    data class StandardEditorPosition(
        private val line: Int,
        private val column: Int = 0
    ) : EditorPosition, Serializable {
    
        override fun getLine() = line
    
        override fun getColumn() = column
    }
    
    
    internal
    abstract class AbstractKotlinDslScriptsModelBuilder : ToolingModelBuilder {
    
        companion object {
            private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 18:13:21 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  6. pkg/proxy/nftables/helpers_test.go

    	"k8s.io/apimachinery/pkg/util/sets"
    	netutils "k8s.io/utils/net"
    	"sigs.k8s.io/knftables"
    )
    
    // getLine returns a string containing the file and line number of the caller, if
    // possible. This is useful in tests with a large number of cases - when something goes
    // wrong you can find which case more easily.
    func getLine() string {
    	_, file, line, ok := runtime.Caller(1)
    	if !ok {
    		return ""
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 09:57:47 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/problems/ReceivedProblem.groovy

                super(location)
                line = location['line'] as int
                column = location['column'] as int
                length = location['length'] as int
            }
    
            @Override
            int getLine() {
                line
            }
    
            @Override
            int getColumn() {
                column
            }
    
            @Override
            int getLength() {
                length
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 12:45:23 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/ProblemsProgressEventConsumer.java

                    LineInFileLocation fileLocation = (LineInFileLocation) location;
                    return new org.gradle.internal.build.event.types.DefaultLineInFileLocation(fileLocation.getPath(), fileLocation.getLine(), fileLocation.getColumn(), fileLocation.getLength());
                } else if (location instanceof OffsetInFileLocation) {
                    OffsetInFileLocation fileLocation = (OffsetInFileLocation) location;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 12K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/DefaultScriptCompilationHandler.java

                    }
                }
            }
    
            SyntaxException syntaxError = e.getErrorCollector().getSyntaxError(0);
            int lineNumber = syntaxError == null ? -1 : syntaxError.getLine();
            String message = String.format("Could not compile %s.", source.getDisplayName());
            throw ((InternalProblems) getProblemsService()).getInternalReporter().throwing(builder -> builder
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  10. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/tasks/internal/ValidationProblemSerialization.java

                if (value instanceof LineInFileLocation) {
                    out.name("subtype").value("lineInFile");
                    LineInFileLocation l = (LineInFileLocation) value;
                    out.name("line").value(l.getLine());
                    out.name("column").value(l.getColumn());
                    out.name("length").value(l.getLength());
                } else if (value instanceof OffsetInFileLocation) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 27.7K bytes
    - Viewed (0)
Back to top