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: archive_test.go
    path of file: ./repos/wal-g/internal/databases/mongo/models
    
    the code of the file until where you have to start completion: package models

import (
	"reflect"
	"testing"
)

func TestNewArchive(t *testing.T) {
	type args struct {
		Start Timestamp
		End   Timestamp
		Ext   string
		Type  string
	}
	tests := []struct {
		name    string
		args    args
		want    Archive
		wantErr bool
	}{
		{
			name: "unknown_type",
			args: args{
				Start: Timestamp{1579541143, 32},
				End:   Timestamp{1579541443, 33},
				Ext:   "lzo",
				Type:  "type",
			},
			wantErr: true,
		},
		{
			name: "start_>_End",
			args: args{
				Start: Timestamp{1579541543, 32},
				End:   Timestamp{1579541443, 33},
				Ext:   "lzo",
				Type:  "oplog",
			},
			wantErr: true,
		},
		{
			name: "start_end_ext_type",
			args: args{
				Start: Timestamp{1579541143, 39},
				End:   Timestamp{1579541443, 33},
				Ext:   "lzo",
				Type:  "oplog",
			},
			want: Archive{
				Start: Timestamp{1579541143, 39},
				End:   Timestamp{1579541443, 33},
				Ext:   "lzo",
				Type:  "oplog",
			},
			wantErr: false,
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			got, err := NewArchive(tt.args.Start, tt.args.End, tt.args.Ext, tt.args.Type)
			if (err != nil) != tt.wantErr {
				t.Errorf("NewArchive() error = %v, wantErr %v", err, tt.wantErr)
				return
			}
			if !reflect.DeepEqual(got, tt.want) {
				t.Errorf("Ne
    
func TestArchFromFilename(t *testing.T) {
	type args struct {
		path string
	}
	tests := []struct {
		name    string
		args    args
		want    Archive
		wantErr bool
	}{
		{
			name: "archive_lzo",
			args: args{
				path: "oplog_1579541143.39_1579541443.33.lzo",
			},
			want: Archive{
				Start: Timestamp{1579541143, 39},
				End:   Timestamp{1579541443, 33},
				Ext:   "lzo",
				Type:  "oplog",
			},
			wantErr: false,
		},
		{
			name: "archive_zip",
			args: args{
				path: "oplog_1579541143.1_1579541443.2.zip",
			},
			want: Archive{
				Start: Timestamp{1579541143, 1},
				End:   Timestamp{1579541443, 2},
				Ext:   "zip",
				Type:  "oplog",
			},
			wantErr: false,
		},
		{
			name: "archive_gap",
			args: args{
				path: "gap_1579541143.39_1579541443.33.lzo",
			},
			want: Archive{
				Start: Timestamp{1579541143, 39},
				End:   Timestamp{1579541443, 33},
				Ext:   "lzo",
				Type:  "gap",
			},
			wantErr: false,
		},
		{
			name: "archive_without_prefix",
			args: args{
				path: "1579541143.1_1579541443.2.zip",
			},
			wantErr: true,
		},
		{
			name: "archive_without_extension",
			args: args{
				path: "oplog_1579541143.39_1579541443.33",
			},
			wantErr: true,
		},
		{
			name: "archive_without_second_TS",
			args: args{
				path: "oplog_1579541143.39",
			},
			wantErr: true,
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			got, err := ArchFromFilename(tt.args.path)
			if (err != nil) != tt.wantErr {
				t.Errorf("ArchFromFilename() error = %v, wantErr %v", err, tt.wantErr)
				return
			}
			if !reflect.DeepEqual(got, tt.want) {
				t.Errorf("ArchFromFilename() got = %v, want %v", got, tt.want)
			}
		})
	}
}