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: value_from_test.go
    path of file: ./repos/kwok/pkg/utils/expression
    
    the code of the file until where you have to start completion: /*
Copyright 2022 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distrib
    
func TestDurationFrom_Get(t *testing.T) {
	now := time.Now().Truncate(time.Second)
	nowPlugOneSecond := metav1.NewTime(now.Add(time.Second))
	type args struct {
		value *time.Duration
		src   *string
		v     interface{}
	}
	tests := []struct {
		name    string
		args    args
		wantErr bool
		want    time.Duration
		wantOk  bool
	}{
		{
			args: args{
				value: nil,
				src:   nil,
				v:     corev1.Pod{},
			},
			wantOk: false,
		},
		{
			args: args{
				value: format.Ptr(time.Duration(0)),
				src:   nil,
				v:     corev1.Pod{},
			},
			want:   0,
			wantOk: true,
		},
		{
			args: args{
				value: format.Ptr(time.Duration(1)),
				src:   format.Ptr(".metadata.deletionTimestamp"),
				v: corev1.Pod{
					ObjectMeta: metav1.ObjectMeta{
						DeletionTimestamp: &nowPlugOneSecond,
					},
				},
			},
			want:   1 * time.Second,
			wantOk: true,
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			d, err := NewDurationFrom(tt.args.value, tt.args.src)
			if (err != nil) != tt.wantErr {
				t.Errorf("NewDurationFrom() error = %v, wantErr %v", err, tt.wantErr)
				return
			}
			got, gotOk := d.Get(context.Background(), tt.args.v, now)
			if got != tt.want {
				t.Errorf("Get() got = %v, want %v", got, tt.want)
			}
			if gotOk != tt.wantOk {
				t.Errorf("Get() gotOk = %v, wantOk %v", gotOk, tt.wantOk)
			}
		})
	}
}