Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for unitText (0.21 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. build-logic/jvm/src/main/kotlin/gradlebuild.unittest-and-compile.gradle.kts

    Bo Zhang <******@****.***> 1715586208 +0800
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 07:43:28 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  3. samples/bookinfo/src/productpage/Dockerfile

    COPY static /opt/microservices/static
    COPY requirements.txt /opt/microservices/
    
    ARG flood_factor
    ENV FLOOD_FACTOR ${flood_factor:-0}
    
    EXPOSE 9080
    WORKDIR /opt/microservices
    RUN python -m unittest discover
    
    CMD ["gunicorn", "-b", "[::]:9080", "productpage:app", "-w", "8", "--keep-alive", "2", "-k", "gevent"]
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 14:35:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. build-logic/kotlin-dsl/src/main/kotlin/gradlebuild.kotlin-dsl-dependencies-embedded.gradle.kts

        kotlinMainSourceSet.srcDir(apiExtensionsFileCollection)
    
        // Workaround for https://github.com/gradle/gradle/issues/24131
        // See gradlebuild.unittest-and-compile.gradle.kts
        configurations["transitiveSourcesElements"].outgoing.artifact(apiExtensionsOutputDir) {
            builtBy(generateKotlinDependencyExtensions)
        }
    
        processResources {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 22:44:42 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/debug/debug_test.cc

      }
    
      std::string path_;
      mlir::MLIRContext context_;
      mlir::OwningOpRef<mlir::ModuleOp> module_;
    
     private:
      std::string GetOutputPath() {
        const auto* const test_info =
            testing::UnitTest::GetInstance()->current_test_info();
        return tsl::io::JoinPath(
            getenv("TEST_UNDECLARED_OUTPUTS_DIR"),
            absl::StrCat(test_info->test_suite_name(), ".", test_info->name()));
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 11:15:16 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_body/test_tutorial001.py

    from unittest.mock import patch
    
    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture
    def client():
        from docs_src.body.tutorial001 import app
    
        client = TestClient(app)
        return client
    
    
    def test_body_float(client: TestClient):
        response = client.post("/items/", json={"name": "Foo", "price": 50.5})
        assert response.status_code == 200
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body/test_tutorial001_py310.py

    from unittest.mock import patch
    
    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture
    def client():
        from docs_src.body.tutorial001_py310 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_body_float(client: TestClient):
        response = client.post("/items/", json={"name": "Foo", "price": 50.5})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. platforms/native/testing-native/src/main/java/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestPlugin.java

            // Add the unit test and extension
            final DefaultCppTestSuite testComponent = componentFactory.newInstance(CppTestSuite.class, DefaultCppTestSuite.class, "test");
            project.getExtensions().add(CppTestSuite.class, "unitTest", testComponent);
            project.getComponents().add(testComponent);
    
            testComponent.getBaseName().convention(project.getName() + "Test");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:46:00 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. pkg/proxy/config/config_test.go

    	fakeWatch.Delete(endpoints2)
    	endpoints = []*discoveryv1.EndpointSlice{endpoints1v2, endpoints3}
    	handler.ValidateEndpointSlices(t, endpoints)
    	handler2.ValidateEndpointSlices(t, endpoints)
    }
    
    // TODO: Add a unittest for interrupts getting processed in a timely manner.
    // Currently this module has a circular dependency with config, and so it's
    // named config_test, which means even test methods need to be public. This
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  10. pkg/controller/replicaset/replica_set_test.go

    			break
    		}
    	}
    	if gets != 1 || updates != 2 {
    		t.Errorf("Expected 1 get and 2 updates, got %d gets %d updates", gets, updates)
    	}
    }
    
    // TODO: This test is too hairy for a unittest. It should be moved to an E2E suite.
    func doTestControllerBurstReplicas(t *testing.T, burstReplicas, numReplicas int) {
    	logger, ctx := ktesting.NewTestContext(t)
    	labelMap := map[string]string{"foo": "bar"}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
Back to top