(t *testing.T)
| 15 | } |
| 16 | |
| 17 | func TestFindPythonConfig(t *testing.T) { |
| 18 | _, err := FindPythonConfig("0.0") |
| 19 | t.Logf("Library path is %s", pythonLibraryPath) |
| 20 | if err == nil { |
| 21 | t.Fatal("Should fail when loading a nonexistent Python version") |
| 22 | } |
| 23 | pythonVersion, err := FindPythonConfig(testVersion) |
| 24 | t.Logf("Version is %s", pythonVersion) |
| 25 | t.Logf("Library path is %s", pythonLibraryPath) |
| 26 | if err != nil { |
| 27 | t.Fatalf("Couldn't find Python %s", testVersion) |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | func TestInit(t *testing.T) { |
| 32 | _, err := FindPythonConfig(testVersion) |
nothing calls this directly
no test coverage detected