Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 69 for Deadcode (0.12 sec)

  1. src/net/http/httptest/recorder_test.go

    	badCodes := []int{
    		-100, 0, 99, 1000, 20000,
    	}
    	for _, badCode := range badCodes {
    		badCode := badCode
    		t.Run(fmt.Sprintf("Code=%d", badCode), func(t *testing.T) {
    			defer func() {
    				if r := recover(); r == nil {
    					t.Fatal("Expected a panic")
    				}
    			}()
    
    			handler := func(rw http.ResponseWriter, _ *http.Request) {
    				rw.WriteHeader(badCode)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 23:17:38 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  2. internal/ioutil/read_file.go

    // Because ReadFile reads the whole file, it does not treat an EOF from Read
    // as an error to be reported.
    func ReadFileWithFileInfo(name string) ([]byte, fs.FileInfo, error) {
    	f, err := OsOpenFile(name, readMode, 0o666)
    	if err != nil {
    		return nil, nil, err
    	}
    	defer f.Close()
    
    	st, err := f.Stat()
    	if err != nil {
    		return nil, nil, err
    	}
    
    	dst := make([]byte, st.Size())
    	_, err = io.ReadFull(f, dst)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 09 18:17:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginDependenciesIntegrationTest.groovy

                tasks.withType(Pmd) {
                    // clear the classpath to avoid file locking issues on PMD version < 5.5.1
                    classpath = files()
                }
            """
            badCode()
        }
    
        def "allows configuring tool dependencies explicitly"() {
            def testDependency = 'net.sourceforge.pmd:pmd:5.1.1'
            expect: //defaults exist and can be inspected
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. internal/ioutil/read_file_noatime_notsupported.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package ioutil
    
    import "os"
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 893 bytes
    - Viewed (0)
  5. cmd/xl-storage_noatime_supported.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"os"
    )
    
    var (
    	// Disallow updating access times
    	readMode = os.O_RDONLY | 0x40000 // O_NOATIME
    
    	// Write with data sync only used only for `xl.meta` writes
    	writeMode = 0x1000 // O_DSYNC
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testshared/testdata/depBase/dep.go

    	// exercising https://golang.org/issues/17594
    	reflect.TypeOf(os.Stdout).Elem()
    	return 10
    }
    
    func F() int {
    	defer func() {}()
    	return V
    }
    
    func H() {
    	// Issue 67635: deadcoded closures causes linker crash.
    	func() { F() }()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 1K bytes
    - Viewed (0)
  7. cmd/xl-storage_noatime_notsupported.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"os"
    )
    
    var (
    	// No special option for reads on windows
    	readMode = os.O_RDONLY
    
    	// Write with sync no buffering only used only for `xl.meta` writes
    	writeMode = os.O_SYNC
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1K bytes
    - Viewed (0)
  8. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginIncrementalAnalysisIntegrationTest.groovy

        }
    
        def 'incremental analysis is transparent'() {
            given:
            Assume.assumeTrue(supportIncrementalAnalysis())
            goodCode()
            badCode()
    
            when:
            fails('pmdMain')
    
            then:
            file("build/reports/pmd/main.xml").assertContents(Matchers.containsText('BadClass'))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. internal/ioutil/read_file_noatime_supported.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package ioutil
    
    import (
    	"os"
    )
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 937 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testplugin/testdata/issue44956/main.go

    //
    // which compiles to
    //
    //     X = &stmp           // static
    //     stmp = makemap(...) // in init function
    //
    // plugin1 and plugin2 both import base. plugin1 doesn't use
    // base.X, so that symbol is deadcoded in plugin1.
    //
    // plugin1 is loaded first. base.init runs at that point, which
    // initialize base.stmp.
    //
    // plugin2 is then loaded. base.init already ran, so it doesn't run
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top