- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for BoolCondition (0.41 sec)
-
src/cmd/go/internal/script/conds.go
func (c *prefixCond) Eval(s *State, suffix string) (bool, error) { return c.eval(s, suffix) } // BoolCondition returns a Cond with the given truth value and summary. // The Cond rejects the use of condition suffixes. func BoolCondition(summary string, v bool) Cond { return &boolCond{v: v, usage: CondUsage{Summary: summary}} } type boolCond struct { v bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 5K bytes - Viewed (0) -
src/cmd/go/internal/script/scripttest/scripttest.go
func DefaultConds() map[string]script.Cond { conds := script.DefaultConds() conds["exec"] = CachedExec() conds["short"] = script.BoolCondition("testing.Short()", testing.Short()) conds["verbose"] = script.BoolCondition("testing.Verbose()", testing.Verbose()) return conds } // Run runs the script from the given filename starting at the given initial state.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 11 20:12:18 UTC 2023 - 3.7K bytes - Viewed (0) -
src/cmd/go/scriptconds_test.go
add("cc", script.PrefixCondition("go env CC = <suffix> (ignoring the go/env file)", ccIs)) add("cgo", script.BoolCondition("host CGO_ENABLED", testenv.HasCGO())) add("cgolinkext", script.Condition("platform requires external linking for cgo", cgoLinkExt)) add("cross", script.BoolCondition("cmd/go GOOS/GOARCH != GOHOSTOS/GOHOSTARCH", goHostOS != runtime.GOOS || goHostArch != runtime.GOARCH))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 7.4K bytes - Viewed (0)