Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for decInt8 (0.15 sec)

  1. src/encoding/gob/decode.go

    	value.SetBool(state.decodeUint() != 0)
    }
    
    // decInt8 decodes an integer and stores it as an int8 in value.
    func decInt8(i *decInstr, state *decoderState, value reflect.Value) {
    	v := state.decodeInt()
    	if v < math.MinInt8 || math.MaxInt8 < v {
    		error_(i.ovfl)
    	}
    	value.SetInt(v)
    }
    
    // decUint8 decodes an unsigned integer and stores it as a uint8 in value.
    func decUint8(i *decInstr, state *decoderState, value reflect.Value) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  2. src/encoding/gob/codec_test.go

    		}
    	}
    
    	// int8
    	{
    		var data int8
    		instr := &decInstr{decInt8, 6, nil, ovfl}
    		state := newDecodeStateFromData(signedResult)
    		execDec(instr, state, t, reflect.ValueOf(&data))
    		if data != 17 {
    			t.Errorf("int8 a = %v not 17", data)
    		}
    	}
    
    	// uint8
    	{
    		var data uint8
    		instr := &decInstr{decUint8, 6, nil, ovfl}
    		state := newDecodeStateFromData(unsignedResult)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/options/TaskOptionFailureIntegrationTest.groovy

            failure.assertHasDescription("Problem configuring task :other:someTask from command line.")
            failure.assertHasCause("Unknown command-line option '--first'.")
        }
    
        def "using an unknown option yields decent error message"() {
            given:
            buildFile << """
                task foo
                task someTask(type: SomeTask)
                task someTask2(type: SomeTask)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/BuildInitPluginIntegrationTest.groovy

      - 'scala-library'""")
        }
    
        def "gives decent error message when triggered with unknown dsl"() {
            when:
            fails('init', '--dsl', 'some-unknown-dsl')
    
            then:
            failure.assertHasCause("""The requested build script DSL 'some-unknown-dsl' is not supported. Supported DSLs:
      - 'kotlin'
      - 'groovy'""")
        }
    
        def "gives decent error message when using unknown test framework"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 13:39:44 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/mvnsettings/DefaultLocalMavenRepositoryLocatorTest.groovy

            when:
            1 * system.getProperty("maven.repo.local") >> repo2.absolutePath
            then:
            locator.localMavenRepository == repo2
        }
    
        def "throws exception on broken global settings file with decent error message"() {
            given:
            def settingsFile = locations.globalSettingsFile
            settingsFile << "broken content"
            when:
            locator.localMavenRepository
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/integTest/groovy/org/gradle/language/objectivec/ObjectiveCUnsupportedIntegrationTest.groovy

        def helloWorldApp = new ObjectiveCHelloWorldApp()
    
        def "setup"() {
            buildFile << helloWorldApp.pluginScript
            buildFile << helloWorldApp.extraConfiguration
        }
    
        def "fails with decent error message with visual studio toolchain"() {
            given:
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
            """
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/maven/MavenProjectsCreatorSpec.groovy

            then:
            mavenProjects.size() == 2
            mavenProjects[0].name == 'webinar-parent'
            mavenProjects[1].name == 'webinar-api'
        }
    
        def "fails with decent exception if pom is incorrect"() {
            given:
            def pom = temp.file("pom.xml")
            pom.text = """<project>
      <modelVersion>4.0.0</modelVersion>
      <artifactId>util</artifactId>
      <version>2.5</version>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  8. subprojects/diagnostics/src/integTest/groovy/org/gradle/configuration/HelpTest.groovy

    class HelpTest extends AbstractProjectBuilderSpec {
        Help helpTask
    
        def setup() {
            helpTask = project.tasks.create("somehelp", Help.class)
        }
    
        def "gives decent error message for unknown tasks"() {
            when:
            helpTask.setTaskPath("notexisting")
            helpTask.displayHelp()
            then:
            def e = thrown(TaskSelectionException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 15 07:22:20 UTC 2016
    - 1.2K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/integTest/groovy/org/gradle/language/objectivecpp/ObjectiveCppUnsupportedIntegrationTest.groovy

        def helloWorldApp = new ObjectiveCppHelloWorldApp()
    
        def "setup"() {
            buildFile << helloWorldApp.pluginScript
            buildFile << helloWorldApp.extraConfiguration
        }
    
        def "fails with decent error message with visual studio toolchain"() {
            given:
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
            """
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. platforms/software/platform-base/src/test/groovy/org/gradle/platform/base/internal/registry/BinaryTypeModelRuleExtractorTest.groovy

                assert role == ModelActionRole.Mutate
                assert action.subject == ModelReference.of(ComponentSpecFactory)
            }
            0 * _
        }
    
        def "decent error message for rule declaration problem - #descr"() {
            def ruleMethod = ruleDefinitionForMethod(methodName)
            def ruleDescription = getStringDescription(ruleMethod.method)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 9.6K bytes
    - Viewed (0)
Back to top