Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestOpts (0.13 sec)

  1. pkg/log/options_test.go

    // limitations under the License.
    
    package log
    
    import (
    	"reflect"
    	"strconv"
    	"strings"
    	"testing"
    
    	"github.com/spf13/cobra"
    )
    
    func TestOpts(t *testing.T) {
    	resetGlobals()
    
    	cases := []struct {
    		cmdLine string
    		result  Options
    	}{
    		{"--log_as_json", Options{
    			OutputPaths:         []string{defaultOutputPath},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. pkg/version/cobra_test.go

    // limitations under the License.
    
    package version
    
    import (
    	"bytes"
    	"encoding/json"
    	"fmt"
    	"regexp"
    	"strings"
    	"testing"
    
    	"github.com/spf13/cobra"
    	"sigs.k8s.io/yaml"
    )
    
    func TestOpts(t *testing.T) {
    	ordinaryCmd := CobraCommand()
    	remoteCmd := CobraCommandWithOptions(
    		CobraOptions{GetRemoteVersion: mockRemoteMesh(&meshInfoMultiVersion, nil)})
    
    	cases := []struct {
    		args       string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 29 14:15:26 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top