Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSortByRFC6724 (0.12 sec)

  1. src/net/addrselect_test.go

    // license that can be found in the LICENSE file.
    
    //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
    
    package net
    
    import (
    	"net/netip"
    	"reflect"
    	"testing"
    )
    
    func TestSortByRFC6724(t *testing.T) {
    	tests := []struct {
    		in      []IPAddr
    		srcs    []netip.Addr
    		want    []IPAddr
    		reverse bool // also test it starting backwards
    	}{
    		// Examples from RFC 6724 section 10.2:
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 05 07:16:00 UTC 2022
    - 8.5K bytes
    - Viewed (0)
Back to top