Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,138 for checkLine (0.13 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go

    		}
    		if !bytes.Contains(line, []byte("+build")) {
    			continue
    		}
    		if err := checkLine(string(line), i >= cutoff); err != nil {
    			pass.Reportf(analysisutil.LineStart(tf, i+1), "%s", err)
    			continue
    		}
    	}
    	return nil
    }
    
    // checkLine checks a line that starts with "//" and contains "+build".
    func checkLine(line string, pastCutoff bool) error {
    	line = strings.TrimPrefix(line, "//")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_fuzz_minimize_dirty_cov.txt

    			return
    		}
    	})
    }
    
    -- check_file/main.go --
    package main
    
    import (
    	"bytes"
    	"fmt"
    	"os"
    	"path/filepath"
    	"regexp"
    	"strconv"
    )
    
    func checkFile(name, expected string) (bool, error) {
    	data, err := os.ReadFile(name)
    	if err != nil {
    		return false, err
    	}
    	for _, line := range bytes.Split(data, []byte("\n")) {
    		m := valRe.FindSubmatch(line)
    		if m == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. pkg/kubeapiserver/authorizer/reload.go

    	filesystem.WatchUntil(
    		ctx,
    		r.reloadInterval,
    		r.initialConfig.ReloadFile,
    		func() {
    			r.checkFile(ctx)
    		},
    		func(err error) {
    			klog.ErrorS(err, "watching authorization config file")
    		},
    	)
    }
    
    func (r *reloadableAuthorizerResolver) checkFile(ctx context.Context) {
    	r.lastLoadedLock.Lock()
    	defer r.lastLoadedLock.Unlock()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/cache/cache_test.go

    	entry, _ := c.Get(id)
    	PutBytes(c, ActionID(dummyID(2)), []byte("def"))
    	mtime := now
    	checkTime(fmt.Sprintf("%x-a", id), mtime)
    	checkTime(fmt.Sprintf("%x-d", entry.OutputID), mtime)
    
    	// Get should not change recent mtimes.
    	now = start + 10
    	c.Get(id)
    	checkTime(fmt.Sprintf("%x-a", id), mtime)
    	checkTime(fmt.Sprintf("%x-d", entry.OutputID), mtime)
    
    	// Get should change distant mtimes.
    	now = start + 5000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:49:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/ConfigurableFileTreeIntegrationTest.groovy

            file("src/ignore-2.txt").createFile()
    
            run("generate")
    
            then:
            result.assertTaskSkipped(":generate")
            output.count("checking") == 8
            outputContains("checking a/a.txt")
            outputContains("checking ignore-2.txt")
            file("out.txt").text == "a.txt,c.txt"
    
            when:
            file("src/d/d.txt").createFile()
            file("src/ignore-3.txt").createFile()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileTreeIntegrationTest.groovy

                    println("checking \${it.name}")
                    !it.name.contains('ignore')
                }
                task copy(type: Copy) {
                    from files
                    into 'dest'
                }
            """
    
            when:
            run 'copy'
    
            then:
            outputContains("checking one.txt")
            outputContains("checking ignore.txt")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredFileAccess.groovy

        }
    
        static class FileCheck extends UndeclaredFileAccess {
            private final String checkKind
    
            FileCheck(String filePath, String checkKind) {
                super(filePath)
                this.checkKind = checkKind
            }
    
            @Override
            String getKotlinExpression() {
                "File(\"${filePath}\").$checkKind()"
            }
    
            @Override
            String getGroovyExpression() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types/size.go

    // is needed immediately.  CheckSize makes sure the
    // size is evaluated eventually.
    
    var deferredTypeStack []*Type
    
    func CheckSize(t *Type) {
    	if t == nil {
    		return
    	}
    
    	// function arg structs should not be checked
    	// outside of the enclosing function.
    	if t.IsFuncArgStruct() {
    		base.Fatalf("CheckSize %v", t)
    	}
    
    	if defercalc == 0 {
    		CalcSize(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/AbstractPropertySpec.groovy

            return propertyWithNoValue().value(value)
        }
    
        def "finalization checking works empty providers"() {
            given:
            def property = propertyWithNoValue()
    
            expect:
            !property.isPresent()
            !property.isFinalized()
        }
    
        def "finalization checking works with simple values"() {
            given:
            def property = propertyWithValue(someValue())
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 12:47:05 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. test/fixedbugs/bug468.go

    // rundir
    
    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // The reflect package was not correctly checking field names
    // when checking for struct assignability.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 293 bytes
    - Viewed (0)
Back to top