Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for unitText (0.12 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.js

      function percentText(v) {
        function percent(v, total) {
          return Number(((100.0 * v) / total).toFixed(1)) + '%';
        }
        return unitText(v) + " (" + percent(v, stacks.Total) + ")";
      }
    
      // unitText returns a formatted string to display for value.
      function unitText(value) {
        return pprofUnitText(value*stacks.Scale, stacks.Unit);
      }
    
      function find(name) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/testing/test-suite-plugin/groovy/src/test/java/example/UnitTest.java

     * limitations under the License.
     */
    
    package example;
    
    import org.junit.jupiter.api.Assertions;
    import org.junit.jupiter.api.Test;
    
    public class UnitTest {
        @Test
        public void unitTest() {
            Assertions.assertTrue(true);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 820 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/testing/test-suite-plugin/kotlin/src/test/java/example/UnitTest.java

     * limitations under the License.
     */
    
    package example;
    
    import org.junit.jupiter.api.Assertions;
    import org.junit.jupiter.api.Test;
    
    public class UnitTest {
        @Test
        public void unitTest() {
            Assertions.assertTrue(true);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 820 bytes
    - Viewed (0)
  4. platforms/native/testing-native/src/test/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestPluginTest.groovy

            then:
            project.unitTest instanceof CppTestSuite
            project.unitTest.baseName.get() == "someAppTest"
            project.unitTest.cppSource.files == [src] as Set
        }
    
        def "sets tested component to main component when applying C++ library plugin"() {
            when:
            project.pluginManager.apply(CppUnitTestPlugin)
    
            then:
            project.unitTest.testedComponent.orNull == null
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-jvm-test-suite/src/integTest/groovy/org/gradle/testing/testsuites/TestSuitesTestFrameworkIntegrationTest.groovy

                dependsOn testing.suites.integTest
            }
            """
    
            file('src/test/java/example/UnitTest.java') << '''
                package example;
    
                import org.junit.Assert;
                import org.junit.Test;
    
                public class UnitTest {
                    @Test
                    public void unitTest() {
                        Assert.assertTrue(true);
                    }
                }
            '''
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 18:44:49 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/resource/TextResourceIntegrationTest.groovy

                }
    """
            when:
            run("uriText")
    
            then:
            result.assertTasksExecuted(":uriText")
            file("output.txt").text == "my config\n"
    
            when:
            run("uriText")
    
            then:
            result.assertTasksSkipped(":uriText")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. hack/boilerplate/boilerplate_test.py

    # limitations under the License.
    
    import os
    import sys
    import unittest
    
    from io import StringIO
    
    import boilerplate
    
    class TestBoilerplate(unittest.TestCase):
        """
        Note: run this test from the hack/boilerplate directory.
    
        $ python -m unittest boilerplate_test
        """
    
        def test_boilerplate(self):
            os.chdir("test/")
    
            class Args:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 09:05:26 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. samples/bookinfo/src/productpage/tests/unit/test_productpage.py

    #   limitations under the License.
    #
    # Run from the top level productpage directory with:
    #
    # pip install -r test-requirements.txt
    # python -m unittest discover tests/unit
    
    import unittest
    
    import requests_mock
    
    import productpage
    
    
    class ApplianceTest(unittest.TestCase):
    
        def setUp(self):
            self.app = productpage.app.test_client()
    
        @requests_mock.Mocker()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 23:56:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. ci/official/wheel_test/test_import_api_packages.py

    TensorFlow API v2 init files and is stored in the wheel file after the build.
    
    See README.md file for "how to run" instruction.
    """
    
    import logging
    import unittest
    import pkg_resources
    
    logging.basicConfig(level=logging.INFO)
    
    
    class ImportApiPackagesTest(unittest.TestCase):
      """ImportApiPackagesTest class. See description at the top of the file."""
    
      def setUp(self):
        def _get_api_packages_v2():
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 13 15:52:07 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  10. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest.h

    class GTEST_API_ UnitTest {
     public:
      // Gets the singleton UnitTest object.  The first time this method
      // is called, a UnitTest object is constructed and returned.
      // Consecutive calls will return the same object.
      static UnitTest* GetInstance();
    
      // Runs all tests in this UnitTest object and prints the result.
      // Returns 0 if successful, or 1 otherwise.
      //
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 86.4K bytes
    - Viewed (0)
Back to top