You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: config_test.go
    path of file: ./repos/liftbridge/server
    
    the code of the file until where you have to start completion: package server

import (
	"crypto/tls"
	"crypto/x509"
	"io/ioutil"
	"testing"
	"time"

	"github.com/stretchr/testify/require"

	client "github.com/liftbridge-io/liftbridge-api/go"
	proto "github.com/liftbridge-io/liftbridge/server/protocol"
)

// Ensure NewConfig properly parses config files.
func TestNewConfigFromFile(t *testing.T) {
	config, err := NewConfig("configs/full.yaml")
	require.NoError(t, err)

	require.Equal(t, "localhost", config.Listen.Host)
	require.Equal(t, 9293, config.Listen.Port)
	require.Equal(t, "0.0.0.0", config.Host)
	require.Equal(t, 5050, config.Port)
	require.Equal(t, uint32(5), config.LogLevel)
	require.True(t, config.LogRecovery)
	require.True(t, config.LogRaft)
	require.True(t, config.LogNATS)
	require.Equal(t, "/foo", config.DataDir)
	require.Equal(t, 10, config.BatchMaxMessages)
	require.Equal(t, time.Second, config.BatchMaxTime)
	require.Equal(t, time.Minute, config.MetadataCacheMaxAge)

	require.Equal(t, int64(1024), config.Streams.RetentionMaxBytes)
	require.Equal(t, int64(100), config.Streams.RetentionMaxMessages)
	require.Equal(
    
func TestStreamsConfigApplyOverridesDefault(t *testing.T) {
	s, _ := time.ParseDuration("1000s")
	autoPauseTime := 30 * time.Second

	// Given a default stream config
	streamConfig := StreamsConfig{
		SegmentMaxBytes: 2048,
		SegmentMaxAge:   s,
		AutoPauseTime:   autoPauseTime,
		MinISR:          2,
	}

	// Given custom configs
	customStreamConfig := &proto.StreamConfig{
		RetentionMaxBytes:    &proto.NullableInt64{Value: 1024},
		RetentionMaxMessages: &proto.NullableInt64{Value: 1000},
		RetentionMaxAge:      &proto.NullableInt64{Value: 1000000},
		CleanerInterval:      &proto.NullableInt64{Value: 1000000},
		CompactMaxGoroutines: &proto.NullableInt32{Value: 10},
	}

	streamConfig.ApplyOverrides(customStreamConfig)

	// Ensure that in case of non-overlap values, default configs
	// remain present
	require.Equal(t, int64(2048), streamConfig.SegmentMaxBytes)
	require.Equal(t, s, streamConfig.SegmentMaxAge)
	require.Equal(t, autoPauseTime, streamConfig.AutoPauseTime)
	require.Equal(t, 2, streamConfig.MinISR)
	require.Equal(t, false, streamConfig.ConcurrencyControl)

	// Ensure values from custom configs overwrite default configs
	require.Equal(t, int64(1024), streamConfig.RetentionMaxBytes)
	require.Equal(t, int64(1000), streamConfig.RetentionMaxMessages)
	require.Equal(t, s, streamConfig.RetentionMaxAge)
	require.Equal(t, s, streamConfig.CleanerInterval)
	require.Equal(t, 10, streamConfig.CompactMaxGoroutines)

}