diff --git a/api_test.go b/api_test.go
index <HASH>..<HASH> 100644
--- a/api_test.go
+++ b/api_test.go
@@ -69,6 +69,8 @@ var (
 		"virCopyLastError",
 		"virFreeError",
 		"virGetLastErrorMessage",
+		"virGetLastErrorCode",
+		"virGetLastErrorDomain",
 		"virResetLastError",
 		"virSaveLastError",
 		"virDefaultErrorFunc",
Blacklist virGetLastError{Code,Domain}

These methods will not be exposed to apps, since we always return
all errors.