Skip to content

Tags: rai-project/panicparse

Tags

v1.1.1

Toggle v1.1.1's commit message
Update vendors

Now that ut dependency is removed, this removes a few additional dependencies.

v1.1.0

Toggle v1.1.0's commit message
Fix "Current not implemented on freebsd/amd64" error (maruel#39)

v1.0.2

Toggle v1.0.2's commit message
internal/panic: add tool to generate panics

The source code is designed to scale to a large number of panic styles.
Eventually testing should be transformed to smoke tests that run this tool, this
way this will test the whole toolchain behavior.

v1.0.1

Toggle v1.0.1's commit message
Add map and channel type (maruel#34)

* Add map and channel type

* Add tests for map/channel type

Closes maruel#30

* Better handle complex types

* Update name to use switch statement

* Skip processing of last Stack.Calls element instead of first

The leaf function wasn't being processed before, so the following snippet:

  package main

  func g([]string) {
    panic("g")
  }

  func f(map[int]int) {
    g(make([]string, 5))
    panic("f")
  }

  func main() {
    f(map[int]int{})
  }

resulted in:

  panic: g

  exit status 2

  To see all goroutines, visit https://github.com/maruel/panicparse#GOTRACEBACK

  18:25:04.051198 load(/path/to/main.go)
  1: running
      main main.go:4  g(0xc420045ee8, 0x5, 0x5)
      main main.go:8  f(map[int]int(0xc420078000))
      main main.go:13 main()

and now results in:

  panic: g

  exit status 2

  To see all goroutines, visit https://github.com/maruel/panicparse#GOTRACEBACK

  18:25:42.981470 load(/path/to/main.go)
  1: running
      main main.go:4  g([]string(0xc420045ee8 len=5 cap=5))
      main main.go:8  f(map[int]int(0xc420066000))
      main main.go:13 main()

v1.0.0

Toggle v1.0.0's commit message
Fix >50% in README.md