Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 218 for mapNil (0.11 sec)

  1. test/typeparam/cons.go

    type Cons[a any] struct {
    	Head a
    	Tail List[a]
    }
    
    func (xs Cons[a]) Match(casenil Function[Nil[a], any], casecons Function[Cons[a], any]) any {
    	return casecons.Apply(xs)
    }
    
    type mapNil[a, b any] struct {
    }
    
    func (m mapNil[a, b]) Apply(_ Nil[a]) any {
    	return Nil[b]{}
    }
    
    type mapCons[a, b any] struct {
    	f Function[a, b]
    }
    
    func (m mapCons[a, b]) Apply(xs Cons[a]) any {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 21 23:41:49 UTC 2022
    - 2K bytes
    - Viewed (0)
  2. src/testing/fstest/mapfs.go

    	}
    	return n, nil
    }
    
    // A mapDir is a directory fs.File (so also an fs.ReadDirFile) open for reading.
    type mapDir struct {
    	path string
    	mapFileInfo
    	entry  []mapFileInfo
    	offset int
    }
    
    func (d *mapDir) Stat() (fs.FileInfo, error) { return &d.mapFileInfo, nil }
    func (d *mapDir) Close() error               { return nil }
    func (d *mapDir) Read(b []byte) (int, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. src/testing/fstest/mapfs_test.go

    	}
    	if err := TestFS(m, "hello", "fortune", "fortune/k", "fortune/k/ken.txt"); err != nil {
    		t.Fatal(err)
    	}
    }
    
    func TestMapFSChmodDot(t *testing.T) {
    	m := MapFS{
    		"a/b.txt": &MapFile{Mode: 0666},
    		".":       &MapFile{Mode: 0777 | fs.ModeDir},
    	}
    	buf := new(strings.Builder)
    	fs.WalkDir(m, ".", func(path string, d fs.DirEntry, err error) error {
    		fi, err := d.Info()
    		if err != nil {
    			return err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 14:59:55 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/types_test.go

    	nestedVal.AddField(flags)
    	nestedVal.AddField(dates)
    	nested := apiservercel.NewField(3, "nested")
    	nested.Ref = testValue(t, 4, nestedVal)
    	mapVal := apiservercel.NewMapValue()
    	mapVal.AddField(name)
    	mapVal.AddField(nested)
    	//rule := rt.ConvertToRule(testValue(t, 11, mapVal))
    	//if rule == nil {
    	//	t.Error("map could not be converted to rule")
    	//}
    	//if rule.GetID() != 11 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 15:52:31 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. src/runtime/symtab_test.go

    		{"sliceLit[1]", sliceLit[1], 25},
    		{"sliceLit[2]", sliceLit[2], 25},
    		{"sliceLit[3]", sliceLit[3], 26},
    
    		{"mapLit[29]", mapLit[29], 29},
    		{"mapLit[30]", mapLit[30], 30},
    		{"mapLit[31]", mapLit[31+firstLine] + firstLine, 31}, // nb it's the key not the value
    		{"mapLit[32]", mapLit[32+firstLine] + firstLine, 32}, // nb it's the key not the value
    
    		{"intLit", intLit - 2*firstLine, 34 + 35 + 36},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 21:46:33 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  6. operator/pkg/tpath/struct.go

    		if path[0] == "" {
    			return nil, false, fmt.Errorf("getFromStructPath path %s, empty map key value", path)
    		}
    		mapVal := val.MapIndex(reflect.ValueOf(path[0]))
    		if !mapVal.IsValid() {
    			return nil, false, fmt.Errorf("getFromStructPath path %s, path does not exist", path)
    		}
    		return getFromStructPath(mapVal.Interface(), path[1:])
    	case reflect.Slice:
    		idx, err := strconv.Atoi(path[0])
    		if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  7. src/main/resources/fess_env.properties

    #                                                      Mail
    #                                                     ------
    # Does it send mock mail? (true: no send actually, logging only)
    mail.send.mock = true
    
    # SMTP server settings for main: host:port
    mail.smtp.server.main.host.and.port = localhost:25
    
    # The prefix of subject to show test environment or not
    mail.subject.test.prefix = [Test]
    
    # The common return path of all mail
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sat Aug 07 04:53:24 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  8. src/main/resources/fess_env_web.properties

    #                                                      Mail
    #                                                     ------
    # Does it send mock mail? (true: no send actually, logging only)
    mail.send.mock = false
    
    # SMTP server settings for main: host:port
    mail.smtp.server.main.host.and.port = localhost:25
    
    # The prefix of subject to show test environment or not
    mail.subject.test.prefix = 
    
    # The common return path of all mail
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 29 07:34:32 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  9. src/main/resources/fess_env_crawler.properties

    #                                                      Mail
    #                                                     ------
    # Does it send mock mail? (true: no send actually, logging only)
    mail.send.mock = false
    
    # SMTP server settings for main: host:port
    mail.smtp.server.main.host.and.port = localhost:25
    
    # The prefix of subject to show test environment or not
    mail.subject.test.prefix = 
    
    # The common return path of all mail
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 29 07:34:32 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  10. src/main/resources/fess_env_thumbnail.properties

    #                                                      Mail
    #                                                     ------
    # Does it send mock mail? (true: no send actually, logging only)
    mail.send.mock = false
    
    # SMTP server settings for main: host:port
    mail.smtp.server.main.host.and.port = localhost:25
    
    # The prefix of subject to show test environment or not
    mail.subject.test.prefix = 
    
    # The common return path of all mail
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Feb 12 13:38:57 UTC 2018
    - 2.2K bytes
    - Viewed (0)
Back to top