MCPcopy Index your code
hub / github.com/go-python/gopy / testPkg

Function testPkg

main_test.go:944–965  ·  view source on GitHub ↗
(t *testing.T, table pkg)

Source from the content-addressed store, hash-verified

942}
943
944func testPkg(t *testing.T, table pkg) {
945 backends := []string{"py3"}
946 // backends := table.lang // todo: enabling py2 testing requires separate "want" output
947 for _, be := range backends {
948 fmt.Printf("looping over backends: %s in %s\n", be, backends)
949 vm, ok := testBackends[be]
950 if !ok || vm == "" {
951 // backend not available.
952 t.Logf("Skipped testing backend %s for %s\n", be, table.path)
953 continue
954 }
955 switch be {
956 case "py3":
957 t.Run(be, func(t *testing.T) {
958 // t.Parallel()
959 testPkgBackend(t, vm, table)
960 })
961 default:
962 t.Errorf("invalid backend name %q", be)
963 }
964 }
965}
966
967func writeGoMod(t *testing.T, pkgDir, tstDir string) {
968 template := `

Callers 15

TestHiFunction · 0.85
TestBytesFunction · 0.85
TestBindFuncsFunction · 0.85
TestBindSimpleFunction · 0.85
TestBindEmptyFunction · 0.85
TestBindPointersFunction · 0.85
TestBindNamedFunction · 0.85
TestBindStructsFunction · 0.85
TestBindConstsFunction · 0.85
TestBindVarsFunction · 0.85
TestBindSeqsFunction · 0.85
TestBindInterfacesFunction · 0.85

Calls 2

testPkgBackendFunction · 0.85
PrintfMethod · 0.80

Tested by

no test coverage detected