- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 298 for Resets (0.13 sec)
-
pkg/test/util.go
import ( "context" "os" "go.uber.org/atomic" ) // SetForTest sets a variable for the duration of a test, then resets it once the test is complete. func SetForTest[T any](t Failer, vv *T, v T) { old := *vv *vv = v t.Cleanup(func() { *vv = old }) } // SetEnvForTest sets an environment variable for the duration of a test, then resets it once the test is complete. func SetEnvForTest(t Failer, k, v string) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 05 01:20:59 UTC 2024 - 1.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dependencies/DefaultMutableVersionConstraintTest.groovy
when: version.reject('1.0.1', '1.0.2') then: version.requiredVersion == '1.0' version.rejectedVersions == ['1.0.1', '1.0.2'] } def "calling 'prefers' resets the list of rejects"() { given: def version = new DefaultMutableVersionConstraint('1.0') version.reject('1.0.1') when: version.prefer('1.1') then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 5.4K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/config/LoggingSystem.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 1K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/ResettableExpectations.java
* test expectations before cleanup so they can be silenced if necessary. */ public interface ResettableExpectations { /** * Resets all pending expectations after verifying them. * Must throw when a verification fails. */ void resetExpectations();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/loop_test.go
} } type timerWrapper struct { timer clock.Timer resets []time.Duration onReset func(d time.Duration) } func (w *timerWrapper) C() <-chan time.Time { return w.timer.C() } func (w *timerWrapper) Stop() bool { return w.timer.Stop() } func (w *timerWrapper) Reset(d time.Duration) bool { w.resets = append(w.resets, d) b := w.timer.Reset(d) if w.onReset != nil { w.onReset(d) } return b
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 19 02:48:08 UTC 2023 - 15.8K bytes - Viewed (0) -
src/compress/zlib/reader.go
err error scratch [4]byte } // Resetter resets a ReadCloser returned by [NewReader] or [NewReaderDict] // to switch to a new underlying Reader. This permits reusing a ReadCloser // instead of allocating a new one. type Resetter interface { // Reset discards any buffered data and resets the Resetter as if it was // newly initialized with the given reader. Reset(r io.Reader, dict []byte) error }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 23:20:03 UTC 2023 - 4.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/caching/internal/controller/impl/LifecycleAwareBuildCacheController.java
*/ void configurationAvailable(BuildCacheConfigurationInternal configuration); /** * Resets the state of this controller in preparation for loading configuration from the cache. */ void resetState();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 22 23:28:13 UTC 2024 - 1.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/routes/metrics.go
register() c.Handle("/metrics", legacyregistry.Handler()) } // MetricsWithReset install the prometheus metrics handler extended with support for the DELETE method // which resets the metrics. type MetricsWithReset struct{} // Install adds the MetricsWithReset handler func (m MetricsWithReset) Install(c *mux.PathRecorderMux) { register() c.Handle("/metrics", legacyregistry.HandlerWithReset())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 16 02:06:01 UTC 2023 - 1.8K bytes - Viewed (0) -
src/cmd/go/internal/workcmd/vendor.go
"cmd/go/internal/modload" "context" ) var cmdVendor = &base.Command{ UsageLine: "go work vendor [-e] [-v] [-o outdir]", Short: "make vendored copy of dependencies", Long: ` Vendor resets the workspace's vendor directory to include all packages needed to build and test all the workspace's packages. It does not include test code for vendored packages. The -v flag causes vendor to print the names of vendored
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 24 18:09:22 UTC 2023 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/metrics.go
func (m *validationMetrics) ObserveRatchetingTime(d time.Duration) { m.RatchetingTime.Observe(d.Seconds()) } // Reset resets the metrics. This is meant to be used for testing. Panics // if the metrics cannot be re-registered. Returns all the reset metrics func (m *validationMetrics) Reset() []metrics.Registerable { m.RatchetingTime = metrics.NewHistogram(m.RatchetingTime.HistogramOpts) return []metrics.Registerable{m.RatchetingTime}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 17:57:34 UTC 2023 - 2K bytes - Viewed (0)