Files
dingtalk-workspace-cli/internal/shortcut/runner_coverage_test.go
玉澜andCursor 2839d36631 fix(schema): close platform coverage gap and pin MCP loader policy
Rename policy loader assertions to loadPinnedMCPMetadata and add
minimal CrossPlatformCoverage tests for the remaining changed-code
statements that kept macOS/Windows gates below 100%.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 18:06:49 +08:00

19 lines
469 B
Go

// Copyright 2026 Alibaba Group
// Licensed under the Apache License, Version 2.0 (the "License");
package shortcut
import (
"testing"
"github.com/spf13/cobra"
)
func TestCrossPlatformCoverageRuntimeContextForTest(t *testing.T) {
cmd := &cobra.Command{Use: "run"}
rt := RuntimeContextForTest(cmd, Shortcut{Service: "sample", Command: "run"})
if rt == nil || rt.cmd != cmd || rt.shortcut.Service != "sample" {
t.Fatalf("RuntimeContextForTest = %#v", rt)
}
}