func TestShow(t *testing.T) {
	if testing.Short() {
		t.Skip("skipping test in short mode.")
	}
	unit := "nginx"
	opts := Options{
		UserMode: false,
	}
	for _, x := range properties.Properties {
		t.Run(fmt.Sprintf("show property %s", string(x)), func(t *testing.T) {
			ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
			defer cancel()
			t.Parallel()
			_, err := Show(ctx, unit, x, opts)
			if err != nil {
				t.Errorf("error is %v, but should have been %v", err, nil)
			}
		})
	}
}
// Runs through all defined Properties in parallel and checks for error cases
Runs through all defined Properties in parallel and checks for error cases
// Runs through all defined Properties in parallel and checks for error cases
func TestShow(t *testing.T) {
	if testing.Short() {
		t.Skip("skipping test in short mode.")
	}
	unit := "nginx"
	opts := Options{
		UserMode: false,
	}
	for _, x := range properties.Properties {
		t.Run(fmt.Sprintf("show property %s", string(x)), func(t *testing.T) {
			ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
			defer cancel()
			t.Parallel()
			_, err := Show(ctx, unit, x, opts)
			if err != nil {
				t.Errorf("error is %v, but should have been %v", err, nil)
			}
		})
	}
}
func TestShow ( t * testing . T ) { if testing . Short ( ) { t . Skip ( " " ) } unit := " " opts := Options { UserMode : false , } for _ , x := range properties . Properties { t . Run ( fmt . Sprintf ( " " , string ( x ) ) , func ( t * testing . T ) { ctx , cancel := context . WithTimeout ( context . Background ( ) , 1 * time . Second ) defer cancel ( ) t . Parallel ( ) _ , err := Show ( ctx , unit , x , opts ) if err != nil { t . Errorf ( " " , err , nil ) } } ) } }
Runs through all defined Properties in parallel and checks for error cases
Runs through all defined Properties in parallel and checks for error cases