Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TestGenerate (0.26 sec)

  1. cmd/gotemplate/gotemplate_test.go

    */
    
    package main
    
    import (
    	"bytes"
    	"os"
    	"path"
    	"strings"
    	"syscall"
    	"testing"
    
    	"github.com/stretchr/testify/assert"
    	"github.com/stretchr/testify/require"
    )
    
    func TestGenerate(t *testing.T) {
    	noFileErr := os.PathError{Op: "open", Path: "no-such-file.txt", Err: syscall.Errno(syscall.ENOENT)}
    	for name, tt := range map[string]struct {
    		in          string
    		data        map[string]string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 22 13:43:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. pilot/pkg/xds/nds_test.go

    			}
    			if diff := cmp.Diff(nt, tt.expected, protocmp.Transform()); diff != "" {
    				t.Fatalf("name table does not match expected value:\n %v", diff)
    			}
    		})
    	}
    }
    
    func TestGenerate(t *testing.T) {
    	nt := &dnsProto.NameTable{
    		Table: make(map[string]*dnsProto.NameTable_NameInfo),
    	}
    	emptyNameTable := model.Resources{&discovery.Resource{Resource: protoconv.MessageToAny(nt)}}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/go/types/generate_test.go

    const (
    	srcDir = "/src/cmd/compile/internal/types2/"
    	dstDir = "/src/go/types/"
    )
    
    // TestGenerate verifies that generated files in go/types match their types2
    // counterpart. If -write is set, this test actually writes the expected
    // content to go/types; otherwise, it just compares with the existing content.
    func TestGenerate(t *testing.T) {
    	// If filesToWrite is set, write the generated content to disk.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. pilot/pkg/xds/sds_test.go

    				}
    			}
    			if diff := cmp.Diff(got, tt.expect); diff != "" {
    				t.Fatal(diff)
    			}
    		})
    	}
    }
    
    // TestCaching ensures we don't have cross-proxy cache generation issues. This is split from TestGenerate
    // since it is order dependent.
    // Regression test for https://github.com/istio/istio/issues/33368
    func TestCaching(t *testing.T) {
    	s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 17.7K bytes
    - Viewed (0)
Back to top