Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix minor unreachable code caused by t.Fatal #680

Merged
merged 1 commit into from
Aug 15, 2022

Conversation

Abirdcfly
Copy link
Contributor

Signed-off-by: Abirdcfly fp544037857@gmail.com

see https://go.dev/play/p/EKemzC-_Uk4 for example:

package main

import (
	"testing"
)

func TestLastIndex(t *testing.T) {
	t.Fatalf("print this line")
	t.Log("not print")
}

/* output:
=== RUN   TestLastIndex
    prog.go:8: print this line
--- FAIL: TestLastIndex (0.00s)
FAIL

Program exited.
*/

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
@rfjakob rfjakob merged commit 702a2e1 into rfjakob:master Aug 15, 2022
@Abirdcfly Abirdcfly deleted the patch-1 branch September 11, 2022 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants