Skip to content

Commit

Permalink
chore(test): tag all unittests as !integration
Browse files Browse the repository at this point in the history
To avoid re-running all the unittests when running the integration (FV)
tests, add a go:build directive of '!integration' to all unittest files.

Signed-off-by: Dominic Evans <[email protected]>
  • Loading branch information
dnwe committed Dec 27, 2024
1 parent 1358013 commit 23e5b89
Show file tree
Hide file tree
Showing 130 changed files with 130 additions and 0 deletions.
1 change: 1 addition & 0 deletions acl_create_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions acl_create_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions acl_delete_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions acl_delete_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions acl_describe_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions acl_describe_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions acl_types_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions add_offsets_to_txn_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions add_offsets_to_txn_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions add_partitions_to_txn_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions add_partitions_to_txn_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions admin_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions alter_client_quotas_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions alter_client_quotas_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions alter_configs_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions alter_configs_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions alter_partition_reassignments_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions alter_partition_reassignments_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions alter_user_scram_credentials_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions alter_user_scram_credentials_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions api_versions_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions api_versions_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions async_producer_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions balance_strategy_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions broker_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions client_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions client_tls_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions config_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions consumer_group_example_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions consumer_group_members_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions consumer_group_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions consumer_metadata_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions consumer_metadata_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions consumer_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions control_record_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions create_partitions_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions create_partitions_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions create_topics_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions create_topics_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions delete_groups_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions delete_groups_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions delete_offsets_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions delete_offsets_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions delete_records_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions delete_records_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions delete_topics_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions delete_topics_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions describe_client_quotas_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions describe_client_quotas_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions describe_configs_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions describe_configs_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions describe_groups_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions describe_groups_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions describe_log_dirs_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions describe_log_dirs_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions describe_user_scram_credentials_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions describe_user_scram_credentials_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions elect_leaders_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions elect_leaders_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions encoder_decoder_fuzz_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional

Check failure on line 1 in encoder_decoder_fuzz_test.go

View workflow job for this annotation

GitHub Actions / Analyze (go)

multiple //go:build comments

Check failure on line 1 in encoder_decoder_fuzz_test.go

View workflow job for this annotation

GitHub Actions / Fuzz

multiple //go:build comments

Check failure on line 1 in encoder_decoder_fuzz_test.go

View workflow job for this annotation

GitHub Actions / Unit Testing with Go 1.20.x

multiple //go:build comments

Check failure on line 1 in encoder_decoder_fuzz_test.go

View workflow job for this annotation

GitHub Actions / Unit Testing with Go 1.23.x

multiple //go:build comments

Check failure on line 1 in encoder_decoder_fuzz_test.go

View workflow job for this annotation

GitHub Actions / Test with Kafka 1.0.2 / Test with Kafka 1.0.2

multiple //go:build comments

Check failure on line 1 in encoder_decoder_fuzz_test.go

View workflow job for this annotation

GitHub Actions / Test with Kafka 2.6.2 / Test with Kafka 2.6.2

multiple //go:build comments

Check failure on line 1 in encoder_decoder_fuzz_test.go

View workflow job for this annotation

GitHub Actions / Test with Kafka 3.6.2 / Test with Kafka 3.6.2

multiple //go:build comments

Check failure on line 1 in encoder_decoder_fuzz_test.go

View workflow job for this annotation

GitHub Actions / Test with Kafka 3.8.1 / Test with Kafka 3.8.1

multiple //go:build comments
//go:build go1.18

package sarama
Expand Down
1 change: 1 addition & 0 deletions end_txn_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions end_txn_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions errors_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions examples/http_server/http_server_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package main

import (
Expand Down
1 change: 1 addition & 0 deletions fetch_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions fetch_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions find_coordinator_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
1 change: 1 addition & 0 deletions find_coordinator_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions functional_admin_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
//go:build functional

package sarama
Expand Down
1 change: 1 addition & 0 deletions functional_client_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
//go:build functional

package sarama
Expand Down
1 change: 1 addition & 0 deletions functional_consumer_follower_fetch_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
//go:build functional

package sarama
Expand Down
1 change: 1 addition & 0 deletions functional_consumer_group_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
//go:build functional

package sarama
Expand Down
1 change: 1 addition & 0 deletions functional_consumer_staticmembership_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
//go:build functional

package sarama
Expand Down
1 change: 1 addition & 0 deletions functional_consumer_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
//go:build functional

package sarama
Expand Down
1 change: 1 addition & 0 deletions functional_offset_manager_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
//go:build functional

package sarama
Expand Down
1 change: 1 addition & 0 deletions functional_producer_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
//go:build functional

package sarama
Expand Down
1 change: 1 addition & 0 deletions functional_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
//go:build functional

package sarama
Expand Down
1 change: 1 addition & 0 deletions heartbeat_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions heartbeat_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import (
Expand Down
1 change: 1 addition & 0 deletions incremental_alter_configs_request_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !functional
package sarama

import "testing"
Expand Down
Loading

0 comments on commit 23e5b89

Please sign in to comment.