- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 285 for diag (0.04 sec)
-
istioctl/pkg/util/formatting/formatter_test.go
g := NewWithT(t) firstMsg := diag.NewMessage( diag.NewMessageType(diag.Error, "B1", "Explosion accident: %v"), diag.MockResource("SoapBubble"), "the bubble is too big", ) secondMsg := diag.NewMessage( diag.NewMessageType(diag.Warning, "C1", "Collapse danger: %v"), diag.MockResource("GrandCastle"), "the castle is too old", ) msgs := diag.Messages{firstMsg, secondMsg}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.1K bytes - Viewed (0) -
istioctl/pkg/analyze/analyze_test.go
"istio.io/istio/istioctl/pkg/util/testutil" "istio.io/istio/pkg/config/analysis/diag" ) func TestErrorOnIssuesFound(t *testing.T) { g := NewWithT(t) msgs := []diag.Message{ diag.NewMessage( diag.NewMessageType(diag.Error, "B1", "Template: %q"), nil, "", ), diag.NewMessage( diag.NewMessageType(diag.Warning, "A1", "Template: %q"), nil, "", ), }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 1.8K bytes - Viewed (0) -
istioctl/pkg/util/formatting/formatter.go
} func printYAML(ms diag.Messages) (string, error) { yamlOutput, err := yaml.Marshal(ms) return string(yamlOutput), err } // Formatting options for Message var ( colorPrefixes = map[diag.Level]string{ diag.Info: "", // no special color for info messages diag.Warning: "\033[33m", // yellow diag.Error: "\033[1;31m", // bold red } )
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jul 11 02:41:45 UTC 2023 - 3.1K bytes - Viewed (0) -
pkg/config/analysis/msg/generate.main.go
func All() []*diag.MessageType { return []*diag.MessageType{ {{- range .Messages}} {{.Name}}, {{- end}} } } {{range .Messages}} // New{{.Name}} returns a new diag.Message based on {{.Name}}. func New{{.Name}}(r *resource.Instance{{range .Args}}, {{.Name}} {{.Type}}{{end}}) diag.Message { return diag.NewMessage( {{.Name}}, r, {{- range .Args}} {{.Name}}, {{- end}} ) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Sep 28 16:55:31 UTC 2023 - 4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/metrics/error_collector_inst.cc
: error_collector_(ErrorCollector::GetErrorCollector()) { handler_ = std::make_unique<ScopedDiagnosticHandler>( context, [this](Diagnostic &diag) { if (diag.getSeverity() == DiagnosticSeverity::Error) { Location loc = diag.getLocation(); std::string error_message = diag.str(); std::string op_name, error_code; if (loc_to_name_.count(loc)) { op_name = loc_to_name_[loc];
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 25 01:48:36 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/test_resource_alias_analysis.cc
auto it = ids.find(value); assert(it != ids.end()); return it->second; }; auto print_aliases = [&](InFlightDiagnostic& diag, Value value) { diag << ", ID " << get_id(value) << " : "; if (analysis.IsUnknownResource(value)) { diag << "Unknown"; } else { auto aliases = llvm::to_vector<4>(analysis.GetResourceAliases(value)); llvm::sort(aliases,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 19 00:13:50 UTC 2022 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/fuse_convolution_pass.cc
diag << "entities 'mul_value' failed to satisfy constraint: " "unsupported dimensions"; }); } if (!is_dynamic_broadcast && !((*conv_op.getODSResults(0).begin()).hasOneUse())) { return rewriter.notifyMatchFailure(mul_op, [&](::mlir::Diagnostic &diag) { diag << "entities 'conv' failed to satisfy constraint: has one use";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 22:21:19 UTC 2024 - 8.3K bytes - Viewed (0) -
src/cmd/internal/obj/data.go
func (s *LSym) prepwrite(ctxt *Link, off int64, siz int) { if off < 0 || siz < 0 || off >= 1<<30 { ctxt.Diag("prepwrite: bad off=%d siz=%d s=%v", off, siz, s) } switch s.Type { case objabi.Sxxx, objabi.SBSS: s.Type = objabi.SDATA case objabi.SNOPTRBSS: s.Type = objabi.SNOPTRDATA case objabi.STLSBSS: ctxt.Diag("cannot supply data for %v var %v", s.Type, s.Name) } l := off + int64(siz) s.Grow(l) if l > s.Size {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 24 14:38:53 UTC 2021 - 6.7K bytes - Viewed (0) -
pkg/config/analysis/local/local.go
package local import ( "istio.io/istio/pkg/config/analysis/diag" ) const ( meshConfigMapKey = "mesh" meshConfigMapName = "istio" meshNetworksMapKey = "meshNetworks" ) // AnalysisResult represents the returnable results of an analysis execution type AnalysisResult struct { Messages diag.Messages MappedMessages map[string]diag.Messages SkippedAnalyzers []string ExecutedAnalyzers []string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 28 20:21:54 UTC 2023 - 984 bytes - Viewed (0) -
pkg/config/analysis/testing/fixtures/context.go
"istio.io/istio/pkg/config/analysis/diag" "istio.io/istio/pkg/config/resource" ) // Context is a test fixture of analysis.Context type Context struct { Resources []*resource.Instance Reports []diag.Message } var _ analysis.Context = &Context{} // Report implements analysis.Context func (ctx *Context) Report(_ config.GroupVersionKind, t diag.Message) { ctx.Reports = append(ctx.Reports, t) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 28 20:21:54 UTC 2023 - 1.6K bytes - Viewed (0)