depstubber with latest change

- still failing with ./tst.go:195:25: undefined: parser.XMLParseNoEnt
This commit is contained in:
Chad Bentz
2023-12-21 00:42:37 +00:00
parent 6f3867d804
commit 667861f575
3 changed files with 46 additions and 12 deletions

View File

@@ -50,6 +50,8 @@ edges
| tst.go:152:14:152:35 | call to Get | tst.go:164:31:164:126 | ...+... |
| tst.go:152:14:152:35 | call to Get | tst.go:173:21:173:116 | ...+... |
| tst.go:152:14:152:35 | call to Get | tst.go:182:27:182:122 | ...+... |
| tst.go:193:14:193:19 | selection of Form | tst.go:193:14:193:35 | call to Get |
| tst.go:193:14:193:35 | call to Get | tst.go:198:23:198:85 | ...+... |
nodes
| XPathInjection.go:13:14:13:19 | selection of Form | semmle.label | selection of Form |
| XPathInjection.go:13:14:13:35 | call to Get | semmle.label | call to Get |
@@ -105,6 +107,9 @@ nodes
| tst.go:164:31:164:126 | ...+... | semmle.label | ...+... |
| tst.go:173:21:173:116 | ...+... | semmle.label | ...+... |
| tst.go:182:27:182:122 | ...+... | semmle.label | ...+... |
| tst.go:193:14:193:19 | selection of Form | semmle.label | selection of Form |
| tst.go:193:14:193:35 | call to Get | semmle.label | call to Get |
| tst.go:198:23:198:85 | ...+... | semmle.label | ...+... |
subpaths
#select
| XPathInjection.go:16:29:16:91 | ...+... | XPathInjection.go:13:14:13:19 | selection of Form | XPathInjection.go:16:29:16:91 | ...+... | XPath expression depends on a $@. | XPathInjection.go:13:14:13:19 | selection of Form | user-provided value |
@@ -147,3 +152,4 @@ subpaths
| tst.go:173:21:173:116 | ...+... | tst.go:152:14:152:19 | selection of Form | tst.go:173:21:173:116 | ...+... | XPath expression depends on a $@. | tst.go:152:14:152:19 | selection of Form | user-provided value |
| tst.go:182:27:182:122 | ...+... | tst.go:151:14:151:19 | selection of Form | tst.go:182:27:182:122 | ...+... | XPath expression depends on a $@. | tst.go:151:14:151:19 | selection of Form | user-provided value |
| tst.go:182:27:182:122 | ...+... | tst.go:152:14:152:19 | selection of Form | tst.go:182:27:182:122 | ...+... | XPath expression depends on a $@. | tst.go:152:14:152:19 | selection of Form | user-provided value |
| tst.go:198:23:198:85 | ...+... | tst.go:193:14:193:19 | selection of Form | tst.go:198:23:198:85 | ...+... | XPath expression depends on a $@. | tst.go:193:14:193:19 | selection of Form | user-provided value |

View File

@@ -0,0 +1,40 @@
// Code generated by depstubber. DO NOT EDIT.
// 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)
// Package parser is a stub of github.com/lestrrat-go/libxml2/parser, generated by depstubber.
package parser
import (
io "io"
)
func New(_ ...Option) *Parser {
return nil
}
type Option int
func (_ Option) String() string {
return ""
}
func (_ *Option) Set(_ ...Option) {}
type Parser struct {
Options Option
}
func (_ *Parser) Parse(_ []byte) (interface{}, error) {
return nil, nil
}
func (_ *Parser) ParseReader(_ io.Reader) (interface{}, error) {
return nil, nil
}
func (_ *Parser) ParseString(_ string) (interface{}, error) {
return nil, nil
}

View File

@@ -1,12 +0,0 @@
// Code generated by depstubber. DO NOT EDIT.
// This is a simple stub for github.com/lestrrat-go/libxml2, strictly for use in testing.
// See the LICENSE file for information about the licensing of the original library.
// Source: github.com/lestrrat-go/libxml2 (exports: ; functions: ParseString)
// Package libxml2 is a stub of github.com/lestrrat-go/libxml2, generated by depstubber.
package libxml2
func ParseString(_ string, _ ...interface{}) (interface{}, error) {
return nil, nil
}