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

Add test to check that all feature flags are boolean #3036

Merged
merged 1 commit into from
Aug 23, 2019
Merged

Add test to check that all feature flags are boolean #3036

merged 1 commit into from
Aug 23, 2019

Conversation

sustrik
Copy link
Contributor

@sustrik sustrik commented Aug 23, 2019

This change is Reviewable

@sustrik sustrik requested a review from lukedirtwalker August 23, 2019 07:22
Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @sustrik)


go/lib/env/BUILD.bazel, line 37 at r1 (raw file):

    name = "go_default_test",
    srcs = ["features_test.go"],
    data = glob(["testdata/**"]),

This is not needed. Did you not generate this via make gazelle ?


go/lib/env/features_test.go, line 27 at r1 (raw file):

	features := reflect.TypeOf(Features{})
	for i := 0; i < features.NumField(); i++ {
		tp := features.Field(i).Type.String()

assert.Equal(t, reflect.Bool, features.Field(i).Type.Kind())

Copy link
Contributor Author

@sustrik sustrik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @lukedirtwalker)


go/lib/env/BUILD.bazel, line 37 at r1 (raw file):

Previously, lukedirtwalker (Lukas Vogel) wrote…

This is not needed. Did you not generate this via make gazelle ?

Gazelle did it, not me.


go/lib/env/features_test.go, line 27 at r1 (raw file):

Previously, lukedirtwalker (Lukas Vogel) wrote…

assert.Equal(t, reflect.Bool, features.Field(i).Type.Kind())

Done.

Copy link
Contributor Author

@sustrik sustrik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @lukedirtwalker)


go/lib/env/BUILD.bazel, line 37 at r1 (raw file):

Previously, sustrik (Martin Sustrik) wrote…

Gazelle did it, not me.

Done.

Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


go/lib/env/BUILD.bazel, line 37 at r1 (raw file):

Previously, sustrik (Martin Sustrik) wrote…

Done.

hm ok. Weird :)

@sustrik sustrik merged commit b070422 into scionproto:master Aug 23, 2019
@sustrik sustrik deleted the check-ff branch August 27, 2019 13:58
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