Add const XMLParseNoEnt to stub

This commit is contained in:
Chad Bentz
2023-12-21 00:49:14 +00:00
parent 667861f575
commit 7c93a2c825
2 changed files with 4 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ package main
//go:generate depstubber -vendor github.com/jbowtie/gokogiri/xml Node
//go:generate depstubber -vendor github.com/jbowtie/gokogiri/xpath "" Compile
//go:generate depstubber -vendor github.com/santhosh-tekuri/xpathparser "" Parse,MustParse
//go:generate depstubber -vendor github.com/lestrrat-go/libxml2/parser Parser New
//go:generate depstubber -vendor github.com/lestrrat-go/libxml2/parser Parser New,XMLParseNoEnt
import (
"net/http"

View File

@@ -2,7 +2,7 @@
// This is a simple stub for github.com/lestrrat-go/libxml2/parser, strictly for use in testing.
// See the LICENSE file for information about the licensing of the original library.
// Source: github.com/lestrrat-go/libxml2/parser (exports: Parser; functions: New)
// Source: github.com/lestrrat-go/libxml2/parser (exports: Parser; functions: New,XMLParseNoEnt)
// Package parser is a stub of github.com/lestrrat-go/libxml2/parser, generated by depstubber.
package parser
@@ -38,3 +38,5 @@ func (_ *Parser) ParseReader(_ io.Reader) (interface{}, error) {
func (_ *Parser) ParseString(_ string) (interface{}, error) {
return nil, nil
}
var XMLParseNoEnt Option = 0